File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
module RSpec ::Rails
4
4
describe FixtureFileUploadSupport do
5
5
context 'with fixture path set in config' do
6
- before { RSpec . configuration . fixture_path = File . dirname ( __FILE__ ) }
7
-
8
6
it 'resolves fixture file' do
7
+ RSpec . configuration . fixture_path = File . dirname ( __FILE__ )
9
8
expect ( fixture_file_upload_resolved ( 'fixture_file_upload_support_spec.rb' ) . run ) . to be true
10
9
end
11
10
end
@@ -17,10 +16,9 @@ module RSpec::Rails
17
16
end
18
17
19
18
context 'with fixture path not set' do
20
- before { RSpec . configuration . fixture_path = nil }
21
-
22
19
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
24
22
end
25
23
end
26
24
You can’t perform that action at this time.
0 commit comments