public
Fork of dchelimsky/rspec-rails
Description: RSpec's official Ruby on Rails plugin
Clone URL: git://github.com/nullstyle/rspec-rails.git
Fixed stub_model examples to work with Rails 2.1.0 (the code was fine, 
just the spec needed patching)
dchelimsky (author)
Sun Jun 01 15:20:33 -0700 2008
commit  430c178ea46c86bd47c01a3e1ddc90d6991639d7
tree    15306bf40dfa76a1b76a97fb800873d5e4d4c3b7
parent  5565caeed67d83bff2f44b25c32d92ce171d45c7
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+== Version 1.1.5
0
+
0
+* Fixed stub_model examples to work with Rails 2.1.0 (the code was fine, just the spec needed patching)
0
+
0
 == Version 1.1.4
0
 
0
 Maintenance release.
...
40
41
42
43
 
 
44
45
46
...
40
41
42
 
43
44
45
46
47
0
@@ -40,7 +40,8 @@ describe "stub_model" do
0
   
0
   it "should raise when hitting the db" do
0
     lambda do
0
- stub_model(MockableModel).save
0
+ model = stub_model(MockableModel, :changed => true, :attributes_with_quotes => {'this' => 'that'})
0
+ model.save
0
     end.should raise_error(Spec::Rails::IllegalDataAccessException, /stubbed models are not allowed to access the database/)
0
   end
0
   

Comments

    No one has commented yet.