Improve Task::DSL spec:
* Improve #initialize spec wording and expectation; * Add #actions spec.
This commit is contained in:
parent
0148854843
commit
b8fd24973a
@ -14,8 +14,15 @@ module Producer::Core
|
||||
end
|
||||
|
||||
describe '#initialize' do
|
||||
it 'has no action' do
|
||||
expect(dsl.actions).to eq []
|
||||
it 'assigns no action' do
|
||||
expect(dsl.actions).to be_empty
|
||||
end
|
||||
end
|
||||
|
||||
describe '#actions' do
|
||||
it 'returns the assigned actions' do
|
||||
dsl.instance_eval { @actions = [:some_action] }
|
||||
expect(dsl.actions).to eq [:some_action]
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user