[rspec-users] Rspec2 / Rails3 / test_unit

2010-07-02 Thread Arco
I generate a new rails3 app using rails new my_app -T. Then i run cd my_app ; rails generate, and I don't see any test_unit options. (as expected). Then I put gem 'rspec-rails' into my Gemfile, and re-run rails generate. Now I see options for test_unit. TestUnit: test_unit:controller

Re: [rspec-users] Cookie assignment and reading

2010-07-02 Thread Josh Clayton
David, Thanks; I thought I was going crazy! The ticket is here: https://rspec.lighthouseapp.com/projects/5645-rspec/tickets/1023-cookie-assignment-and-reading-doesnt-work-if-both-occur-in-the-same-spec Thanks again! On Jul 1, 3:27 pm, David Chelimsky dchelim...@gmail.com wrote: On Jun 29,

Re: [rspec-users] RSpec 2.0, Cucumber, ruby-debug

2010-07-02 Thread Curtis
On Jul 1, 2010, at 10:48 PM, Woody Peterson li...@ruby-forum.com wrote: What are you experiencing and what are you expecting? If you use rspec in cucumber, cucumber doesn't support --debug as an option, so you can't use debuggers in cucumber + rspec. Given RSpec 2.0's api, the expected

Re: [rspec-users] Rspec2 / Rails3 / test_unit

2010-07-02 Thread David Chelimsky
On Jul 2, 2010, at 11:11 AM, Arco wrote: I generate a new rails3 app using rails new my_app -T. Then i run cd my_app ; rails generate, and I don't see any test_unit options. (as expected). Then I put gem 'rspec-rails' into my Gemfile, and re-run rails generate. Now I see options for

[rspec-users] [Rails] Stubbed static methods are bleeding over into other specs and making them fail

2010-07-02 Thread Patrick Gannon
Hi all, I'm having a problem where stubbed static methods aren't properly becoming unstubbed. I have tried manually unstubbing them, but it still doesn't work. Spec is as follows: it creates user accounts for unknown users do Notification.stub(:deliver_routed)

[rspec-users] Beginning writing RSpec with Rails model plugin

2010-07-02 Thread Jose Hales-Garcia
I want to write a Rails model plugin using RSpec. I'm using Rails 3, Ruby 1.9 and RSpec 2. I've read the RSpec and Rails documentation but haven't found any examples of using RSpec in a Rails 3 plugin situation. Is there a plugin someone can recommend that I can study that would help me set