这是一个奇怪的问题,宙斯开始顺利运行。
rspec spec/ 它的工作完美无缺。
My spec_helper config is
# encoding: UTF-8
require 'rubygems'
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'email_spec'
require 'rspec/autorun'
require 'capybara/rspec'
require 'shoulda-matchers'
require 'shoulda/matchers/integrations/rspec'
Dir["./spec/support/**/*.rb"].sort.each {|f| require f}
RSpec.configure do |config|
config.include FactoryGirl::Syntax::Methods
config.include Devise::TestHelpers, type: :controller
config.include Capybara::DSL, type: :request
config.treat_symbols_as_metadata_keys_with_true_values = true
config.mock_with :rspec
config.use_transactional_fixtures = true
end
我在 spec/support/shared_contexts.rb 中共享了上下文(通常包括在内)。rspec spec/
通过所有测试,然后zeus rspec spec/
通过所有测试并抛出这样的包含错误
`find_and_eval_shared':找不到共享上下文“与签名用户”(ArgumentError)
它尝试通过zeus rspec spec/models
,然后在正常工作时抛出“factory_girl”包含错误rspec spec/models
。