Re: [rspec-users] calbacks on models

2011-03-27 Thread Huw
On Sun, Mar 27, 2011 at 1:56 PM, Pixel wrote: > On Sat, Mar 26, 2011 at 8:18 PM, Huw Nichols > wrote: > > OK, found the problem and it's not rspec - my bad... > > Turns out that my spork config using guard etc. does not reload model > files > > as it should - looking into that next > > Reloading

Re: [rspec-users] calbacks on models

2011-03-27 Thread Pixel
On Sat, Mar 26, 2011 at 8:18 PM, Huw Nichols wrote: > OK, found the problem and it's not rspec - my bad... > Turns out that my spork config using guard etc. does not reload model files > as it should - looking into that next > Reloading spork (or killing it and running native) and all tests work a

Re: [rspec-users] calbacks on models

2011-03-26 Thread Huw Nichols
OK, found the problem and it's not rspec - my bad... Turns out that my spork config using guard etc. does not reload model files as it should - looking into that next Reloading spork (or killing it and running native) and all tests work as expected. Sorry for time waste H

Re: [rspec-users] calbacks on models

2011-03-26 Thread Justin Ko
On Mar 26, 2011, at 12:36 PM, Huw Nichols wrote: > Hi, > > Just been looking for answers to this very question: > > I have a User model (using devise) and the same problem. > > Both the before_create and after_create callbacks fail to run from within > Rspec2 > > I can even put invalid cod

Re: [rspec-users] calbacks on models

2011-03-26 Thread Huw Nichols
Hi, Just been looking for answers to this very question: I have a User model (using devise) and the same problem. Both the before_create and after_create callbacks fail to run from within Rspec2 I can even put invalid code in the callbacks and it is not detected until I switch to dev and run

Re: [rspec-users] calbacks on models

2011-03-03 Thread David Chelimsky
On Mar 2, 2011, at 11:49 AM, Andrea Reginato wrote: > 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

[rspec-users] calbacks on models

2011-03-02 Thread Andrea Reginato
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";) a