升级rails 3.2.3时候快速解决的小问题
程序员文章站
2022-04-05 15:21:12
...
[quote]uninitialized constant Test::Unit::TestCase::Assertions (NameError)[/quote]
解决办法是处理一下spec_helper
[url=https://github.com/rspec/rspec-core/issues/482]一个讨论[/url]
[url=https://github.com/cucumber/cucumber/wiki/A-Table-Of-Content]关于Cucumber所有我需要知道的[/url]
[url=https://github.com/cucumber/cucumber-rails-training-wheels]要用cucumber强力推荐这个wheel[/url]
解决办法是处理一下spec_helper
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
#require 'capybara'
require 'capybara-webkit'
require 'capybara/rspec'
#require 'rspec/autorun'
# begin
# require 'capybara-webkit'
# Capybara.javascript_driver = :webkit if Capybara.drivers.has_key? :webkit
# rescue LoadError
# end
[url=https://github.com/rspec/rspec-core/issues/482]一个讨论[/url]
[url=https://github.com/cucumber/cucumber/wiki/A-Table-Of-Content]关于Cucumber所有我需要知道的[/url]
[url=https://github.com/cucumber/cucumber-rails-training-wheels]要用cucumber强力推荐这个wheel[/url]