Fix some wording issues in Test specs
This commit is contained in:
parent
5e6f5f4861
commit
b9e48a9cc4
@ -4,27 +4,27 @@ module Producer::Core
|
||||
describe Test do
|
||||
let(:env) { double 'env' }
|
||||
let(:arguments) { [:some, :arguments] }
|
||||
subject(:action) { Test.new(env, *arguments) }
|
||||
subject(:test) { Test.new(env, *arguments) }
|
||||
|
||||
describe '#initialize' do
|
||||
it 'assigns the env' do
|
||||
expect(action.instance_eval { @env }).to be env
|
||||
expect(test.instance_eval { @env }).to be env
|
||||
end
|
||||
|
||||
it 'assigns the arguments' do
|
||||
expect(action.instance_eval { @arguments }).to eq arguments
|
||||
expect(test.instance_eval { @arguments }).to eq arguments
|
||||
end
|
||||
end
|
||||
|
||||
describe '#env' do
|
||||
it 'returns the assigned env' do
|
||||
expect(action.env).to be env
|
||||
expect(test.env).to be env
|
||||
end
|
||||
end
|
||||
|
||||
describe '#arguments' do
|
||||
it 'returns the assigned arguments' do
|
||||
expect(action.arguments).to eq arguments
|
||||
expect(test.arguments).to eq arguments
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user