Skip to content

Tests are failing after first rspec run #13

Description

@iRonin

My rspec tests are failing after first rspec run.
Color output is disabled after first run as well.
Tried with master just a second ago.

I get errors like the following for get and visit methods inside my tests:

OrderPagesController GET 'choose_plan' returns http success
     Failure/Error: get :choose_plan
     NoMethodError:
       undefined method `get' for #<#<Class:0xa8182c5>::Nested_1:0x469657c4>
     # ./spec/controllers/order_pages_controller_spec.rb:7:in `(root)'

I also get different output for test descriptions:

Order
  as a new record
    example at ./spec/models/order_spec.rb:22 # instead of the description from the first run

On other application in the second run I get the following error for VCR:

ERROR: Guard::JRubyRSpec failed to achieve its <run_all>, exception was:
NameError: undefined local variable or method `use_vcr_cassette' for #<Class:0x66d278af>

It looks like rspec doesn't recognize macros added by other gems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions