spec/mongoid/tenant_spec.rb in mongoid-tenant-0.0.8 vs spec/mongoid/tenant_spec.rb in mongoid-tenant-0.0.9
- old
+ new
@@ -28,8 +28,8 @@
expect { City.create!(name: 'Sin City') }.to_not raise_error
end
it 'should interfer with tenant w/o tenancy' do
expect { Article.create!(title: 'A Very Nice Coffeeshop') }
- .to raise_error(NoMethodError)
+ .to raise_error(RuntimeError)
end
end