Skip to content

Commit

Permalink
Not sure how another gem's folders got stuck in here
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimble committed Apr 22, 2013
1 parent a0303f5 commit 0a91e47
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 587 deletions.
10 changes: 2 additions & 8 deletions Gemfile
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
68 changes: 0 additions & 68 deletions Gemfile.lock

This file was deleted.

20 changes: 0 additions & 20 deletions LICENSE
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.
81 changes: 17 additions & 64 deletions README.md
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
27 changes: 1 addition & 26 deletions Rakefile
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"
23 changes: 0 additions & 23 deletions capybara-typhoeus.gemspec

This file was deleted.

File renamed without changes.
17 changes: 0 additions & 17 deletions draw_route_file/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions draw_route_file/Gemfile

This file was deleted.

29 changes: 0 additions & 29 deletions draw_route_file/README.md

This file was deleted.

1 change: 0 additions & 1 deletion draw_route_file/Rakefile

This file was deleted.

Loading

0 comments on commit 0a91e47

Please sign in to comment.