Fix coding standards in specs (parenthesis usage)

This commit is contained in:
Thibault Jouan 2013-08-22 00:22:37 +00:00
parent a555df40c6
commit 782c8f8498
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ module Producer::Core
let(:code) { proc { } }
let(:env) { double('env').as_null_object }
subject(:dsl) { Recipe::DSL.new &code }
subject(:dsl) { Recipe::DSL.new(&code) }
describe '.evaluate' do
let(:code) { 'nil' }
@ -93,7 +93,7 @@ module Producer::Core
describe '#source' do
let(:filepath) { fixture_path_for 'recipes/throw' }
let(:code) { "source '#{filepath}'" }
subject(:dsl) { Recipe::DSL.new code }
subject(:dsl) { Recipe::DSL.new(code) }
it 'sources the recipe given as argument' do
expect { dsl.evaluate(env) }.to throw_symbol :recipe_code

View File

@ -4,7 +4,7 @@ module Producer::Core
describe Task::DSL do
let(:block) { proc { } }
let(:env) { double('env') }
subject(:dsl) { Task::DSL.new &block }
subject(:dsl) { Task::DSL.new(&block) }
%w[echo sh].each do |action|
it "has `#{action}' action defined" do