我试着跑
BROWSER=phantom rspec spec
在新创建的 Volt 应用程序上并遇到以下错误:
WARNING: LoadError: cannot load such file -- volt/views/notices/index
# ... continues for some time ...
这是一个非常默认的规范:
require 'spec_helper'
describe 'sample integration test', type: :feature do
# An example integration spec, this will only be run if ENV['BROWSER'] is
# specified. Current values for ENV['BROWSER'] are 'firefox' and 'phantom'
it 'should load the page' do
visit '/'
expect(page).to have_content('Home')
puts '======'
end
end
请记住,这是默认的规范设置。我在这里错过了什么吗?