jonleighton / focused_controller

MIT License
468 stars 27 forks source link

Add Rails::VERSION module to test monkey-patches #28

Closed leejarvis closed 11 years ago

leejarvis commented 11 years ago

rspec-rails (or more specifically RailsExampleGroup) expects the new Rails::VERSION module to exist. We could restrict the rspec-rails version but that's probably asking for more problems in the long run.

Before this commit, tests using rspec-rails 2.13.x failed with:

/gems/rspec-rails-2.13.2/lib/rspec/rails/example/rails_example_group.rb:10:in `module:RailsExampleGroup': uninitialized constant Rails::VERSION (NameError)