Skip to content

Commit

Permalink
Fixed update_attribute on Factory.stub instances for Rails 3.0.0.rc
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Aug 25, 2010
1 parent 84e2c1c commit 5e432ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/factory_girl/proxy/stub.rb
Expand Up @@ -26,6 +26,10 @@ def connection
def reload
raise "stubbed models are not allowed to access the database"
end

def update_attribute(*args)
raise "stubbed models are not allowed to access the database"
end
end
end

Expand Down

0 comments on commit 5e432ff

Please sign in to comment.