On Oct 30, 12:09 pm, Leonardo Mateo <[email protected]> wrote:
> Hi guys,
> I'm having a problem that's driving me nuts.
> I have a rails 3.1.1 project in which bundler is ignoring RSpec, no
> matter what I set rspec or rspec-rails it never gets installed.

What is the specific behavior you're not seeing? i.e. do you really
mean it never gets installed (as in you can type "gem list rspec" and
nothing shows up) or do you mean that you don't see it's rake tasks or
something else?

As a starting point, I just created a new rvm gemset, installed rails
3.1.1, ran "rails new example", copied the Gemfile you list below, and
ran bundle install. It installed rspec-rails and the other rspec gems
as expected.

I then ran "rails generate rspec:install" and got an error on ffi
having to do with the rb-inotify gem, so I removed that and libnotify
(gem) and tried again and it worked. I was able to generate a model
with a spec, and run it using the 'rspec' or 'rake spec' commands.

Other relevant info: mac os 10.7.2 (lion), rvm 1.9.1, ruby 1.9.2.

HTH,
David

> I've tried bundler 1.0.21 and bundler pre.
> Any clue would be very much appreciated.
>
> Thaks a lot in advance.
>
> This is my Gemfile
>
> source 'http://rubygems.org'
>
> gem 'rails', '3.1.1'
>
> # Gems used only for assets and not required
> # in production environments by default.
> group :assets do
>   gem 'sass-rails', "~> 3.1.0.rc"
>   gem 'coffee-rails', "~> 3.1.0.rc"
>   gem 'uglifier'
> end
>
> gem 'json'
> gem 'jquery-rails'
> gem 'haml-rails'
> gem 'compass', '>= 0.11.5'
> gem 'omniauth', '>=0.3.0'
> gem 'kaminari'
> gem 'bcrypt-ruby'
> gem 'exception_notification'
> gem 'execjs'
> gem 'therubyracer'
> #group :development do
>   ##gem 'ruby-debug19'
> #end
>
> group :test, :development do
>   gem 'sqlite3'
>   # Pretty printed test output
>   gem 'rb-inotify'
>   gem 'libnotify'
>   gem 'rspec-rails'
>   gem 'guard-rspec'
>   gem 'capybara'
>   gem 'summoner'
>   gem 'wirble'
>   gem 'hirb'
>   gem 'interactive_editor'
> end
>
> group :production do
>   gem 'pg'
> end
>
> --
> Leonardo Mateo.
> There's no place like ~

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to