On Oct 30, 12:09 pm, Leonardo Mateo <leonardoma...@gmail.com> 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'
>
No comments:
Post a Comment