Implement Task#to_s

This commit is contained in:
Thibault Jouan
2014-05-21 13:13:59 +00:00
parent 7cffa34442
commit 2b86bbf112
2 changed files with 10 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ module Producer::Core
end
end
describe '#to_s' do
it 'includes the task name' do
expect(task.to_s).to include name.to_s
end
end
describe '#condition_met?' do
context 'when condition is truthy' do
let(:condition) { Condition.new([], true) }