Skip to content

Commit

Permalink
prevent spec from reading .rspec-local
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed Jun 26, 2015
1 parent 5eee713 commit 6e26645
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/lib/guard/rspec/command_spec.rb
Expand Up @@ -46,6 +46,13 @@
end

context "with no RSpec defined formatter" do
before do
allow(RSpec::Core::ConfigurationOptions).to receive(:new) do
instance_double(RSpec::Core::ConfigurationOptions,
options: { formatters: nil })
end
end

it "sets default progress formatter" do
expect(command).to match %r{-f progress}
end
Expand Down

0 comments on commit 6e26645

Please sign in to comment.