Fix a few coding standards issues:
* Remove extra empty lines before private keyword usages. specs: * Fix one long line; * use proc keyword instead of Proc.new.
This commit is contained in:
parent
fa2f55e516
commit
2acb57254f
@ -32,7 +32,6 @@ module Producer
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def print_usage_and_exit(status)
|
def print_usage_and_exit(status)
|
||||||
|
@ -23,7 +23,6 @@ module Producer
|
|||||||
raise err
|
raise err
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def source(filepath)
|
def source(filepath)
|
||||||
|
@ -49,7 +49,8 @@ module Producer::Core
|
|||||||
|
|
||||||
describe '#evaluate_recipe_file' do
|
describe '#evaluate_recipe_file' do
|
||||||
it 'builds a recipe' do
|
it 'builds a recipe' do
|
||||||
expect(Recipe).to receive(:from_file).with(arguments[1]).and_call_original
|
expect(Recipe)
|
||||||
|
.to receive(:from_file).with(arguments[1]).and_call_original
|
||||||
cli.evaluate_recipe_file
|
cli.evaluate_recipe_file
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
|||||||
|
|
||||||
module Producer::Core
|
module Producer::Core
|
||||||
describe Env do
|
describe Env do
|
||||||
let(:recipe) { Recipe.new(Proc.new { nil }) }
|
let(:recipe) { Recipe.new(proc { nil }) }
|
||||||
subject(:env) { Env.new(recipe) }
|
subject(:env) { Env.new(recipe) }
|
||||||
|
|
||||||
describe '#current_recipe' do
|
describe '#current_recipe' do
|
||||||
|
@ -3,7 +3,7 @@ require 'spec_helper'
|
|||||||
module Producer::Core
|
module Producer::Core
|
||||||
describe Task do
|
describe Task do
|
||||||
let(:name) { :some_task }
|
let(:name) { :some_task }
|
||||||
let(:block) { Proc.new { } }
|
let(:block) { proc { } }
|
||||||
subject(:task) { Task.new(name, &block) }
|
subject(:task) { Task.new(name, &block) }
|
||||||
|
|
||||||
describe '#name' do
|
describe '#name' do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user