test/lib/vedeu/repositories/repository_test.rb in vedeu-0.6.17 vs test/lib/vedeu/repositories/repository_test.rb in vedeu-0.6.18
- old
+ new
@@ -164,10 +164,12 @@
end
describe '#find_or_create' do
let(:model_instance) { Vedeu::Repositories::TestModel.new('niobium') }
+ before { Vedeu.stubs(:log) }
+
subject { instance.find_or_create(model_name) }
context 'when the model exists' do
let(:model_name) { 'niobium' }
@@ -248,9 +250,11 @@
end
end
describe '#store' do
subject { instance.store(model_instance) }
+
+ before { Vedeu.stubs(:log) }
it { instance.must_respond_to(:register) }
context 'when a name attribute is empty or nil' do
before { model_instance.name = '' }