No description, website, or topics provided.
Ruby JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
spec
vendor
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

travis-ci 已经支持xvfb后台测试,但是由于 firefox 版本与 selenium-webdriver 版本不兼容,导致测试失败,出现以下测试

Failures:

  1) Homes GET /homes works! 
    Failure/Error: visit '/'
    Selenium::WebDriver::Error::WebDriverError:
    unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)
      # ./spec/requests/homes_spec.rb:8:in `block (3 levels) in <top (required)>''

本项目就是专门用来检查此类问题

# 本地测试

开一个 terminal 运行:

```bash
firefox --version
Xvfb :99
```

再开一个 terminal 运行:

```bash
DISPLAY=:99.0 bundle exec rspec spec/requests
```