https://github.com/phstc/putsreq_integration_sample
PutsReq - Sample end-to-end tests
https://github.com/phstc/putsreq_integration_sample
Last synced: about 1 year ago
JSON representation
PutsReq - Sample end-to-end tests
- Host: GitHub
- URL: https://github.com/phstc/putsreq_integration_sample
- Owner: phstc
- Created: 2014-04-19T18:06:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-04T21:32:29.000Z (about 12 years ago)
- Last Synced: 2025-06-12T04:42:29.983Z (about 1 year ago)
- Language: Ruby
- Homepage: http://putsreq.com
- Size: 203 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/phstc/putsreq_integration_sample)
## PutsReq - Sample end-to-end tests
Sample end-to-end tests using [PutsReq](http://putsreq.com).
### Tests
Check [spec/acceptance](https://github.com/phstc/putsreq_integration_sample/tree/master/spec/acceptance) to see the test samples.
### Integration with Travis and Capistrano.
Here's an example you can use to trigger an end-to-end test project on [travis](https://travis-ci.org) after every deploy with Capistrano.
```ruby
require 'travis/pro'
set :travis_repository, 'phstc/putsreq_integration_sample'
set :travis_token, '...' # Travis Token http://blog.travis-ci.com/2013-01-28-token-token-token/
namespace :travis do
task :build do
on :local do
Travis::Pro.access_token = fetch(:travis_token)
repo = Travis::Pro::Repository.find(fetch(:travis_repository))
repo.last_build.restart
info "Building #{fetch(:travis_repository)} on travis"
end
end
end
after 'deploy', 'travis:build'
```