test/lib/vedeu/repositories/assemblage_test.rb in vedeu-0.7.4 vs test/lib/vedeu/repositories/assemblage_test.rb in vedeu-0.8.0
- old
+ new
@@ -40,10 +40,24 @@
it { subject.must_be_instance_of(Symbol) }
it { subject.must_equal(:beryllium) }
end
end
+ describe '#any?' do
+ subject { instance.any? }
+
+ context 'when the collection is empty' do
+ let(:collection) { [] }
+
+ it { subject.must_equal(false) }
+ end
+
+ context 'when the collection is not empty' do
+ it { subject.must_equal(true) }
+ end
+ end
+
describe '#empty?' do
subject { instance.empty? }
context 'when the collection is empty' do
let(:collection) { [] }
@@ -71,9 +85,13 @@
Vedeu::Repositories::CollectionTestClass.new('Other text...'.chars)
}
it { (some_collection == other_collection).must_equal(false) }
end
+ end
+
+ describe '#==' do
+ it { instance.must_respond_to(:==) }
end
describe '#size' do
subject { instance.size }