test/lib/vedeu/repositories/collection_test.rb in vedeu-0.4.33 vs test/lib/vedeu/repositories/collection_test.rb in vedeu-0.4.34
- old
+ new
@@ -15,9 +15,30 @@
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
+ 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] }
let(:_value) { 1..2 }
subject { instance[_value] }