Sha256: f411bd635e817a87d8b70b6417d51121582337862f09ffd3919545bc445240df
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true describe TooDoo::Task do let(:body) { 'something here' } subject { described_class.new(body) } describe '#done?' do it { expect(subject.status).to eq(:created) } context 'when task is done' do before do subject.done! end it { expect(subject.done?).to be_truthy } end context 'when task isnt done' do it { expect(subject.done?).to be_falsey } end end describe '#done!' do it do expect { subject.done! } .to change { subject.status }.from(:created).to(:done) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toodoo-0.1.1 | spec/toodoo/task_spec.rb |