[rspec-users] Controller stub and helper spec with lastest beta

Wincent Colaiuta win at wincent.com
Sat Jul 24 11:12:11 EDT 2010


El 24/07/2010, a las 16:33, chatgris escribió:

> I have two issues with beta 2.0.0.beta.18. First, here's the gems :
> 
> gem "rails", "3.0.0.beta4"
> gem "mongoid", "2.0.0.beta10"
> 
> group :test do
>  gem "rspec-rails", "2.0.0.beta.18"
>  gem "factory_girl_rails", "1.0"
> end

[snip]

> That gives this error :
> 
> LinkHelper displays a 80px width gravatar link to the user page
>    Failure/Error: Unable to find matching line from backtrace
>    undefined local variable or method `example' for
> #<RSpec::Core::ExampleGroup::Nested_8:0xb5fc4bac>
>    # /home/chatgris/.bundle/ruby/1.8/bundler/gems/rspec-
> rails-863ffee12bd6030ece577b07c39297c14aacad85-master/lib/rspec/rails/
> example/helper_example_group.rb:54:in `_controller_path'
>    # /home/chatgris/.bundle/ruby/1.8/bundler/gems/rspec-
> rails-863ffee12bd6030ece577b07c39297c14aacad85-master/lib/rspec/rails/
> example/helper_example_group.rb:61

Strange that you've asked for 2.0.0.beta.18 and Bundler is giving you a Git version. What version of Bundler are you using?

Given that "running_example" was renamed to "example" in commit f3de9311, I wonder if you have some kind of Bundler issue which means you're running a newer version of rspec-rails against an older version of rspec-core.

Cheers,
Wincent




More information about the rspec-users mailing list