Skip to content

Commit 741d01d

Browse files
author
Laurent Cobos
committed
fix specs
1 parent 77e3325 commit 741d01d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

spec/rspec/rails/fixture_file_upload_support_spec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
module RSpec::Rails
44
describe FixtureFileUploadSupport do
55
context 'with fixture path set in config' do
6-
before { RSpec.configuration.fixture_path = File.dirname(__FILE__) }
7-
86
it 'resolves fixture file' do
7+
RSpec.configuration.fixture_path = File.dirname(__FILE__)
98
expect(fixture_file_upload_resolved('fixture_file_upload_support_spec.rb').run).to be true
109
end
1110
end
@@ -17,10 +16,9 @@ module RSpec::Rails
1716
end
1817

1918
context 'with fixture path not set' do
20-
before { RSpec.configuration.fixture_path = nil }
21-
2219
it 'resolves fixture with relative path' do
23-
expect(fixture_file_upload_resolved('spec/rspec/rails/fixture_file_upload_support_spec.rb').run).to be true
20+
RSpec.configuration.fixture_path = nil
21+
expect(fixture_file_upload_resolved('fixture_file_upload_support_spec.rb').run).to be true
2422
end
2523
end
2624

0 commit comments

Comments
 (0)