Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
Kevin Lochner wrote in post #971805: > David Chelimsky wrote in post #971793: > > Unfortunately that worked: > >ThingsHelper > supports stubs > > . . . so there's something weird going on with my app. It seems that I left out a critical detail :) I was using incorrect syntax to stub a d

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread David Chelimsky
On Jan 1, 2011, at 2:49 PM, Kevin Lochner wrote: > David Chelimsky wrote in post #971793: > >> You only need ^^ rspec-rails here. It requires rspec, which requires >> rspec-mocks. I'd actually recommend using this format: >> >> gem "rspec-rails", "~> 2.3" >> >> This will accept updates up to,

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread Kevin Lochner
David Chelimsky wrote in post #971793: > You only need ^^ rspec-rails here. It requires rspec, which requires > rspec-mocks. I'd actually recommend using this format: > > gem "rspec-rails", "~> 2.3" > > This will accept updates up to, but not including 3.0. This means > you'll get bug fixes and/

Re: [rspec-users] my helper stubs aren't working (rspec2, rails3)

2011-01-01 Thread David Chelimsky
On Sat, Jan 1, 2011 at 1:12 AM, Kevin Lochner wrote: > David Chelimsky wrote in post #971734: > >> >> Can you post your Gemfile and spec/spec_helper.rb files? I'm guessing >> there's a configuration problem of some sort. >> >> Cheers, >> David > > David - thanks for following up so quickly, and ha

Re: [rspec-users] helper spec problems

2011-01-01 Thread David Chelimsky
On Thu, Dec 30, 2010 at 3:02 PM, klochner wrote: > Using: rspec 2.3 with rails3 > > I'm unable to stub out the current_user method in my helper, not sure > what I'm doing wrong: > >  describe "link_to_current_user, When logged in" do >    it "should link to the given user" do >      helper.stub!(:

Re: [rspec-users] can't get RSpec 2.3.1 to work in Rails 3.0.3 - uninitialized constant Rails (NameError)

2011-01-01 Thread David Chelimsky
On Dec 30, 2010, at 4:37 PM, Kurt wrote: > I just installed rspec-rails 2.3.1 gem into a new Rails 3.0.3 app, ran > the rspec:install generator, but the system doesn't see any other > RSpec generators (like rspec_controller), There is an rspec:controller generator, but Rails hides it from you be

[rspec-users] can't get RSpec 2.3.1 to work in Rails 3.0.3 - uninitialized constant Rails (NameError)

2011-01-01 Thread Kurt
I just installed rspec-rails 2.3.1 gem into a new Rails 3.0.3 app, ran the rspec:install generator, but the system doesn't see any other RSpec generators (like rspec_controller), and the server will no longer start. Both report this error: /.rvm/gems/ruby-1.9.2...@rails3/gems/rspec-rails-2.3.1/li

[rspec-users] helper spec problems

2011-01-01 Thread klochner
Using: rspec 2.3 with rails3 I'm unable to stub out the current_user method in my helper, not sure what I'm doing wrong: describe "link_to_current_user, When logged in" do it "should link to the given user" do helper.stub!(:current_user).and_return(@user) helper.should_receive(:user_