无法用firefox运行rspec测试

时间:2012-04-16 09:05:10

标签: ruby-on-rails-3 firefox rspec capybara

任何有以下错误的想法?我无法在firefox上运行我的rspec测试。

硒::的webdriver ::错误:: WebDriverError:        找不到Firefox二进制文件(os = macosx)。确保安装Firefox或使用Selenium手动设置路径:: WebDriver :: Firefox :: Binary.path =

Gemfile
gem "capybara", :git => "git://github.com/jnicklas/capybara.git"
gem "capybara-firebug"
capybara.rb
require 'capybara/firebug'
Selenium::WebDriver::Firefox::Profile.firebug_version = '1.8.4'
spec_helper.rb
Capybara.current_driver = :selenium_with_firebug if example.metadata[:firebug]

我发现gist错误并没有帮助我修复这个错误

1 个答案:

答案 0 :(得分:0)

愚蠢的错误,我没有在此配置后重新加载终端。

相关问题