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
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,
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/
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
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!(:
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
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
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_