undefined method `get' for #

前端 未结 12 854
野性不改
野性不改 2020-11-30 00:57

Anyone know how to get around this? On OSX, trying to get RSpec running with Rails 3.0.7. Full details at: https://gist.github.com/1017044

  it \"renders but         


        
12条回答
  •  再見小時候
    2020-11-30 01:43

    In Rspec 3.x the spec type is not automatically inferred from a file location, and you must manually set it, add this to the spec_helper.rb

    RSpec.configure do |config|
      config.infer_spec_type_from_file_location!
    end
    

    Rspec upgrade

提交回复
热议问题