Re: [rspec-users] Need Help with Specs failing when using ActionMailer

2009-12-10 Thread Brad
Dave Thanks for looking at this. I really appreciate it. Here is the method being called: 144 # Sign up a new user with a default role of USER and with a state of pending. 145 # The user must activate their account via e-mail before they can login 146 def self.create_from_signup(params = {} )

Re: [rspec-users] Custom Matcher and Webrat methods

2009-12-10 Thread Rodrigo Rosenfeld Rosas
Matt Wynne escreveu: On 10 Dec 2009, at 00:53, Rodrigo Rosenfeld Rosas wrote: Matt Wynne escreveu: ... One problem less :) Next one to be solved: making Selenium work faster with Webrat :) You might want to look at replacing webrat with Capybara then. I've not tried it myself, but I un

Re: [rspec-users] Custom Matcher and Webrat methods

2009-12-10 Thread Matt Wynne
On 10 Dec 2009, at 00:53, Rodrigo Rosenfeld Rosas wrote: Matt Wynne escreveu: On 8 Dec 2009, at 22:04, Rodrigo Rosenfeld Rosas wrote: I would like to be able to write a custom matcher so that I could call this test, for instance: @user.should be_allowed_to_visit(url) @non_welcome.should_

Re: [rspec-users] Autospec is running the full suite too often

2009-12-10 Thread David Chelimsky
On Wed, Dec 9, 2009 at 5:28 PM, DEfusion wrote: > This is a problem I experience quite a bit: > > 1) Create a spec and outline all the examples (as not yet implemented) > 2) Write the body of a example > 3) Autospec runs spec -> fail > 4) Make that example pass > 5) Autospec runs spec -> pass > 6)

Re: [rspec-users] Need Help with Specs failing when using ActionMailer

2009-12-10 Thread David Chelimsky
On Wed, Dec 9, 2009 at 7:48 PM, Brad wrote: > No one was able to help me with the last post so I thought I would try > again with more details.  I am having problems with specs that invoke > the mailer.  My User model has a method that invokes a mailer as part > of the create_from_signup method. >

Re: [rspec-users] Problem with Before Filters

2009-12-10 Thread David Chelimsky
On Thu, Dec 10, 2009 at 2:32 AM, Amit Kulkarni wrote: > Hello, > I am writing controller specs.I want to know how can i write specs which > invlove before filters in controllers. Generally, before filters are part of the internal implementation and don't warrant specification that knows about the