spec/mockery/mockumentary_spec.rb in mockumentary-0.2.0 vs spec/mockery/mockumentary_spec.rb in mockumentary-0.2.1
- old
+ new
@@ -9,9 +9,13 @@
Mockery.stub(:generate) do |args|
@classes << args
end
end
+ it 'does not fail with non-ar models' do
+ lambda { Mockumentary.inspect }.should_not raise_error
+ end
+
it 'calls Mockery.generate for each of the first level active record objects found' do
Mockumentary.introspect
@classes.should include User, Event, EventResource, Task
end