Skip to content

Upgrading from 2.13.0 to 2.13.1 caused "uninitialized constant Rails" #742

@mceachen

Description

@mceachen

gems/rspec-rails-2.13.1/lib/rspec/rails/rails_version.rb:10:in `rails_version': uninitialized constant Rails (NameError)

If you're going to reference ::Rails explicitly in rspec/rails/rails_version.rb, perhaps you should require 'rails' explicitly as well?

This was not required by your consumers in <= v2.13.0.

(I'm using this for an "acts_as_…" active_record plugin, https://github.com/mceachen/closure_tree, so the idea that I'd have to require all of rails instead of just active_record is unfortunate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions