test/lib/vedeu/repositories/collection_test.rb in vedeu-0.4.39 vs test/lib/vedeu/repositories/collection_test.rb in vedeu-0.4.40
- old
+ new
@@ -15,27 +15,15 @@
it { instance.instance_variable_get('@collection').must_equal([]) }
it { instance.instance_variable_get('@name').must_equal(model_name) }
it { instance.instance_variable_get('@parent').must_equal(parent) }
end
- describe '#collection' do
+ describe 'accessors' do
it { instance.must_respond_to(:collection) }
it { instance.must_respond_to(:all) }
- end
-
- describe '#parent' do
it { instance.must_respond_to(:parent) }
- end
-
- describe '#parent=' do
it { instance.must_respond_to(:parent=) }
- end
-
- describe '#name' do
it { instance.must_respond_to(:name) }
- end
-
- describe '#name=' do
it { instance.must_respond_to(:name=) }
end
describe '#[]' do
let(:collection) { [:hydrogen, :helium, :lithium, :beryllium] }