diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-17 13:05:06 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-18 10:29:39 -0600 |
| commit | b3a72f1f302ae4b3d10f1fcba847b45a3491845e (patch) | |
| tree | 219e5738406a337de81825ec46fef6474340e606 /spec/support | |
| parent | 2a4bbbd4c655ac2eda4db0f9a89828be799fbca7 (diff) | |
Extract test fixtures
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/fixture_file_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/fixture_file_helper.rb b/spec/support/fixture_file_helper.rb index c98b98a..fe11acd 100644 --- a/spec/support/fixture_file_helper.rb +++ b/spec/support/fixture_file_helper.rb @@ -1,5 +1,9 @@ module FixtureFileHelper def fixture_file_content(path) - IO.read(License::Management.root.join("spec/fixtures/#{path}")) + IO.read(fixture_file(path)) + end + + def fixture_file(path) + License::Management.root.join("spec/fixtures/#{path}") end end |
