Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
assert we dont warn after a reset
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jul 24, 2013
1 parent 45e3e30 commit c9f44f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/rspec/core/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ def specify_consistent_ordering_of_files_to_run
config.send(setter, "rspec/**/*.spec"); line = __LINE__
expect(Kernel).to have_received(:warn).with /has no effect.*#{__FILE__}:#{line}/
end

it 'will not warn if reset is called after load_spec_files' do
config.load_spec_files
config.reset
expect(Kernel).to_not receive(:warn)
config.send(setter, "rspec/**/*.spec")
end
end
end
end
Expand Down

0 comments on commit c9f44f7

Please sign in to comment.