search for: trap_method

Displaying 2 results from an estimated 2 matches for "trap_method".

Did you mean: rtp_method
2011 Mar 02
6
calbacks on models
Hi, I''m having some strange behavior on callbacks when testing with RSpec2. On my test, when I create a resource using the #create method the callbacks related to #before_create are not called. If I go to the console and I try to type the command Resource.create(client_uri: "http://example.com") all works fine. There are no mocks around, and I can''t understand if this
2011 Jun 22
0
Spork, Rails and testunit
...git version) with Rails 3. My setup is correct, I manage to launch Spork (through bundle exec) and testdrb. But I cannot succeed to have my models reloaded. Spork-testunit''s doc says to put the loading commands in the prefork block, which I did. Nobody seems to require the use of Spork#trap_method. What is the good way to run Spork with Rails 3? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/U5AOb-Uc6DsJ. To post to this...