Improve CLI spec:
Test #arguments accessor instead of testing the constructor.
This commit is contained in:
parent
889ddf84e4
commit
eaccf55581
@ -9,8 +9,8 @@ module Producer::Core
|
|||||||
let(:arguments) { [recipe_file] }
|
let(:arguments) { [recipe_file] }
|
||||||
subject(:cli) { CLI.new(arguments) }
|
subject(:cli) { CLI.new(arguments) }
|
||||||
|
|
||||||
describe '#initialize' do
|
describe '#arguments' do
|
||||||
it 'assigns the arguments' do
|
it 'returns the arguments' do
|
||||||
expect(cli.arguments).to eq arguments
|
expect(cli.arguments).to eq arguments
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user