Skip to content

Upgrade from 2.99 to 3.3 is causing controller test failures #1415

@jeffheifetz

Description

@jeffheifetz

I was following the guide(http://rspec.info/upgrading-from-rspec-2/) and was able to have all tests pass in 2.99 without deperecation warnings, but when I actually upgraded to 3.0, I got a slew of failures.

I'm using rails 4.2.3 and rspec-rails 3.3.2

All of the failures look like this.

Got 0 failures and 2 other errors:
       Shared Example Group: "a user was created successfully" called from ./spec/controllers/api/v1/user_controller_spec.rb:650

       114.1) Failure/Error: Unable to find matching line from backtrace
              ArgumentError:
                comparison of Symbol with Module failed
              # /Users/jeffheifetz/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.3/lib/action_controller/test_case.rb:656:in `<'
              # /Users/jeffheifetz/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.3/lib/action_controller/test_case.rb:656:in `setup_controller_request_and_response'

       114.2) Failure/Error: Unable to find matching line from backtrace
              NoMethodError:
                undefined method `each' for nil:NilClass
              # /Users/jeffheifetz/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.3/lib/action_controller/test_case.rb:58:in `teardown_subscriptions'

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