stevehodgkiss / generator_spec

Test Rails generators with RSpec
MIT License
112 stars 22 forks source link

Remove explicit restriction of rails version #18

Closed tombruijn closed 11 years ago

tombruijn commented 11 years ago

Testing a gem on rails 4 I ran into this problem. With rails 4.0.0.rc1 everything works fine, but with the master branch bundler throws up:

Gemfile:

gem "generator_spec", :path => "/Users/tom/projects/generator_spec" # Local path of this fork
gem 'rails', :git => 'git://github.com/rails/rails.git'
bundle update
Updating git://github.com/rails/rails.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    generator_spec (>= 0) ruby depends on
      railties (< 4.0, >= 3.0) ruby

    rails (>= 0) ruby depends on
      railties (4.1.0.beta)

I removed the non-rails4 restriction on the version and everything works fine, so I'm not sure why the limitation is there. Tests and everything, or am I missing something?