Add missing spec for CLI#initialize
This commit is contained in:
parent
779eb72c32
commit
9285a951c7
@ -9,6 +9,12 @@ module Producer::Core
|
|||||||
let(:arguments) { [recipe_file] }
|
let(:arguments) { [recipe_file] }
|
||||||
subject(:cli) { CLI.new(arguments) }
|
subject(:cli) { CLI.new(arguments) }
|
||||||
|
|
||||||
|
describe '#initialize' do
|
||||||
|
it 'assigns $stdout as the default standard output' do
|
||||||
|
expect(cli.instance_eval { @stdout }).to be $stdout
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe '#arguments' do
|
describe '#arguments' do
|
||||||
it 'returns the assigned arguments' do
|
it 'returns the assigned arguments' do
|
||||||
expect(cli.arguments).to eq arguments
|
expect(cli.arguments).to eq arguments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user