Update wrong spec description.

This commit is contained in:
Michael Kessler 2011-10-01 13:37:49 +02:00
parent b3535b4a4e
commit 7dcd7ca168

View File

@ -536,7 +536,7 @@ describe Guard do
group.stub(:options).and_return({ :halt_on_fail => true }) group.stub(:options).and_return({ :halt_on_fail => true })
end end
it 'returns :task_has_failed when the group is missing' do it 'returns :no_catch' do
subject.should_receive(:groups).with(:foo).and_return group subject.should_receive(:groups).with(:foo).and_return group
subject.guard_symbol(guard).should eql :no_catch subject.guard_symbol(guard).should eql :no_catch
end end
@ -550,7 +550,7 @@ describe Guard do
group.stub(:options).and_return({ :halt_on_fail => false }) group.stub(:options).and_return({ :halt_on_fail => false })
end end
it 'returns :task_has_failed when the group is missing' do it 'returns :task_has_failed' do
subject.should_receive(:groups).with(:foo).and_return group subject.should_receive(:groups).with(:foo).and_return group
subject.guard_symbol(guard).should eql :task_has_failed subject.guard_symbol(guard).should eql :task_has_failed
end end