-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not sure how another gem's folders got stuck in here
- Loading branch information
Showing
22 changed files
with
21 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
source "http://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in draw_route_file.gemspec | ||
gemspec | ||
|
||
group :development do | ||
gem "rake" | ||
gem "rspec", "~> 2.5.0" | ||
gem "sinatra", "~> 1.2.3" | ||
gem "mongrel", "~> 1.2.pre" | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +0,0 @@ | ||
Copyright (c) 2010 Tron Jonathan and HALTER Joseph | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,29 @@ | ||
Capybara-typhoeus | ||
================== | ||
# DrawRouteFile | ||
|
||
This gems makes it possible to use [Typhoeus](https://github.com/dbalatero/typhoeus) for remote testing. | ||
TODO: Write a gem description | ||
|
||
This gem is a [Capybara](http://github.com/jnicklas/capybara) extension. The structure of the gem is taken from the work done on [Capybara-mechanize](http://github.com/jeroenvandijk/capybara-mechanize). | ||
## Installation | ||
|
||
### Installation | ||
Add this line to your application's Gemfile: | ||
|
||
gem install capybara-typhoeus | ||
gem 'draw_route_file' | ||
|
||
### Usage without Cucumber | ||
And then execute: | ||
|
||
require 'capybara/typhoeus' | ||
$ bundle | ||
|
||
### Usage with Cucumber and tags | ||
Or install it yourself as: | ||
|
||
A @typhoeus tag is added to your hooks when you add the following line to your env.rb | ||
$ gem install draw_route_file | ||
|
||
require 'capybara/typhoeus/cucumber' | ||
## Usage | ||
|
||
The following scenario will then be using the Typhoeus driver | ||
TODO: Write usage instructions here | ||
|
||
@typhoeus | ||
Scenario: do something with the API | ||
Given I send and accept JSON | ||
When I send a GET request to /users | ||
## Contributing | ||
|
||
### Remote testing | ||
|
||
When you want to use this driver to test a remote application. You have to set the app_host: | ||
|
||
Capybara.app_host = "http://www.yourapp.com" | ||
|
||
Note that I haven't tested this case for my self yet. The Capybara tests pass for this situation though so it should work! Please provide me with feedback if it doesn't. | ||
|
||
## Running tests | ||
|
||
For the tests to make sense, you need to simulate a remote server, simply add this line to your hosts file: | ||
|
||
127.0.0.1 capybara-testapp.heroku.com | ||
|
||
Run bundler | ||
|
||
bundle install | ||
|
||
Then you are ready to run the test like so | ||
|
||
rake spec | ||
|
||
Caveats | ||
------- | ||
|
||
The focus being to provide a working driver to test APIs, not all Capybara goodness are implemented. | ||
Everything related to submitting forms, clicking buttons, clicking checkboxes or javascript will not work with this driver. | ||
|
||
|
||
Build Status | ||
--------- | ||
|
||
[![Build Status](http://travis-ci.org/TalentBox/capybara-typhoeus.png)](http://travis-ci.org/TalentBox/capybara-typhoeus) | ||
|
||
Note on Patches/Pull Requests | ||
----------------------------- | ||
|
||
* Fork the project. | ||
* Make your feature addition or bug fix. | ||
* Add tests for it. This is important so I don't break it in a | ||
future version unintentionally. | ||
* Commit, do not mess with rakefile, version, or history. | ||
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) | ||
* Send me a pull request. Bonus points for topic branches. | ||
|
||
Copyright | ||
--------- | ||
Copyright (c) 2010 Tron Jonathan and HALTER Joseph. See LICENSE for details. | ||
1. Fork it | ||
2. Create your feature branch (`git checkout -b my-new-feature`) | ||
3. Commit your changes (`git commit -am 'Add some feature'`) | ||
4. Push to the branch (`git push origin my-new-feature`) | ||
5. Create new Pull Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1 @@ | ||
require 'rubygems' | ||
begin | ||
require 'bundler/setup' | ||
rescue LoadError | ||
puts 'You must `gem install bundler` and `bundle install` to run rake tasks' | ||
end | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
end | ||
|
||
RSpec::Core::RakeTask.new(:rcov) do |spec| | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
end | ||
|
||
task :default => :spec | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "capybara-typhoeus" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
require "bundler/gem_tasks" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.