0.0
No commit activity in last 3 years
No release in over 3 years
Utilities to hook in Capybara, RSpec and some other cool testing gems from the world of Ruby to the rest of the world.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.5.0
~> 1.7.0
~> 3.3.0
 Project Readme

RSpec Manumit

A small gem with some utilities to unlease Capybara, RSpec and some other cool testing gems from the world of Ruby to the rest of the world.

Usage

Add to Gemfile:

gem 'rspec-manumit', git: 'https://github.com/paresharma/rspec-manumit.git'

Then, run bundle install.

Create Rakefile (if not already created) to the project root.

Add the following to the Rakefile (if it was already not added, like it would have in a rack application):

require 'bundler'
Bundler.require

Then, run rake rspec:manumit:init. This will create .rspec file and spec/ directory. Spec directory has a sample feature test (spec/features/hompage_spec.rb)

Capybara requires a running server to run the tests, the test server endpoint can be coded to spec/manumit_helper.rb file, or can be pass as a command line argument.

$ APP_HOST=http://localhost:8080 bundle exec rspec

License

This project rocks and uses MIT-LICENSE.