Skip to content

Commit

Permalink
Stub the dsl for each context.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Jun 18, 2012
1 parent 7012e38 commit 3d694b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/guard/watcher_spec.rb
Expand Up @@ -330,7 +330,7 @@
end

describe ".match_guardfile?" do
before(:all) { Guard::Dsl.stub(:guardfile_path) { Dir.pwd + '/Guardfile' } }
before { Guard::Dsl.stub(:guardfile_path) { Dir.pwd + '/Guardfile' } }

context "with files that match the Guardfile" do
specify { described_class.match_guardfile?(['Guardfile', 'guard_rocks_spec.rb']).should be_true }
Expand Down

0 comments on commit 3d694b8

Please sign in to comment.