spec/models/vanilla_spec.rb in draftsman-0.1.1 vs spec/models/vanilla_spec.rb in draftsman-0.2.0
- old
+ new
@@ -157,18 +157,12 @@
let!(:published_vanilla) { Vanilla.create :name => 'Jane', :published_at => Time.now }
describe :drafted do
subject { Vanilla.drafted }
its(:count) { should eql 1 }
-
- it 'includes the unpublished item' do
- subject.should include drafted_vanilla
- end
-
- it 'does not include the published item' do
- subject.should_not include published_vanilla
- end
+ it { should include drafted_vanilla }
+ it { should_not include published_vanilla }
end
describe :live do
subject { Vanilla.live }
@@ -178,17 +172,11 @@
end
describe :published do
subject { Vanilla.published }
its(:count) { should eql 1 }
-
- it 'does not include the unpublished item' do
- subject.should_not include drafted_vanilla
- end
-
- it 'includes the published item' do
- subject.should include published_vanilla
- end
+ it { should_not include drafted_vanilla }
+ it { subject.should include published_vanilla }
end
describe :trashed do
subject { Vanilla.trashed }