Extract mock_model out of RailsExampleGroup
Reported by Eric Smith | April 17th, 2008 @ 12:05 AM | in 1.1.4
The mock_model syntax for ActiveRecord models is extremely handy, unfortunately it's not available outside of a Rails project so I'm reduced to doing things like stubbing associations to test ActiveRecord objects. I really want to be able to set an association to a mock, so extracting that would be great.
Comments and changes to this ticket
-
David Chelimsky April 17th, 2008 @ 02:56 PM
- → Assigned user changed from to David Chelimsky
I'm thinking this should still be in rspec-rails, but made available via a require statement like require 'spec/rails/mocks/mock_model'. That work for you?
-
David Chelimsky April 29th, 2008 @ 03:54 AM
- → Milestone changed from No-Milestone-Assigned to 1.1.4
- → State changed from new to resolved
Actually - just require 'spec/rails/mocks'
Added to http://github.com/dchelimsky/rsp...
-

Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Behaviour Driven Development for Ruby.
