Remove uneeded once() calls from spec

This commit is contained in:
Thibault Jouan 2013-09-22 22:38:13 +00:00
parent 36cf2e041f
commit 0307d6020a
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module Producer::Core
let(:code) { 'nil' }
it 'builds a new DSL sandbox with given code' do
expect(Recipe::DSL).to receive(:new).once.with(code).and_call_original
expect(Recipe::DSL).to receive(:new).with(code).and_call_original
Recipe::DSL.evaluate(code, env)
end

View File

@ -16,7 +16,7 @@ module Producer::Core
let(:name) { :some_task }
it 'builds a new DSL sandbox with given code' do
expect(Task::DSL).to receive(:new).once.with(&block).and_call_original
expect(Task::DSL).to receive(:new).with(&block).and_call_original
Task::DSL.evaluate(name, env, &block)
end