Improve CLI spec:

Test #arguments accessor instead of testing the constructor.
This commit is contained in:
Thibault Jouan 2013-08-06 19:16:42 +00:00
parent 889ddf84e4
commit eaccf55581

View File

@ -9,8 +9,8 @@ module Producer::Core
let(:arguments) { [recipe_file] }
subject(:cli) { CLI.new(arguments) }
describe '#initialize' do
it 'assigns the arguments' do
describe '#arguments' do
it 'returns the arguments' do
expect(cli.arguments).to eq arguments
end
end