Commit 495fefc8 authored by grosser's avatar grosser

readme

parent 4e8a4651
......@@ -2,37 +2,35 @@ Show failing specs instantly. Show passing spec as green dots as usual.
Output
======
....................................................*....
1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
Failure/Error: json_response = JSON.parse response.body
A JSON text must at least contain two octets!
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
# ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
..................................................................
Finished in 650.095614 seconds
```
....................................................*....
1) ApplicationController#sign_out_and_redirect with JSON should return JSON indicating success
Failure/Error: json_response = JSON.parse response.body
A JSON text must at least contain two octets!
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `initialize'
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `new'
# /Users/miwillhite/.rvm/gems/ruby-1.9.2-p0/gems/json_pure-1.4.6/lib/json/common.rb:146:in `parse'
# ./spec/controllers/application_controller_spec.rb:17:in `block (4 levels) in <top (required)>'
..................................................................
1680 examples, 1 failure, 1 pending
Finished in 650.095614 seconds
1680 examples, 1 failure, 1 pending
```
Install
=======
As Gem:
gem install rspec-instafail
# spec/spec.opts (.rspec for rspec 2)
--require rspec/instafail
--format RSpec::Instafail
As plugin:
rails plugin install git://github.com/grosser/rspec-instafail.git
```Bash
gem install rspec-instafail
# spec/spec.opts (.rspec for rspec 2)
--require vendor/plugins/rspec-instafail/lib/rspec/instafail
--format RSpec::Instafail
# .rspec
--require rspec/instafail
--format RSpec::Instafail
```
Authors
=======
......
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
name = 'rspec-instafail'
require './lib/rspec/instafail/version'
# needs rspec installed to load the version, so let's avoid this mess
version = File.read("lib/rspec/instafail/version.rb")[/\d+\.\d+\.\d+/]
Gem::Specification.new name, version do |s|
Gem::Specification.new name, RSpec::Instafail::VERSION do |s|
s.summary = "Show failing specs instantly"
s.authors = ["Michael Grosser"]
s.email = "michael@grosser.it"
s.homepage = "http://github.com/grosser/#{name}"
s.files = `git ls-files`.split("\n")
s.homepage = "https://github.com/grosser/#{name}"
s.files = `git ls-files lib Readme.md`.split("\n")
s.license = "MIT"
s.add_runtime_dependency "rspec"
end
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.3)
rspec (1.3.0)
PLATFORMS
ruby
DEPENDENCIES
diff-lcs (= 1.1.3)
rspec (= 1.3.0)
......@@ -15,5 +15,4 @@ PLATFORMS
ruby
DEPENDENCIES
diff-lcs (= 1.1.3)
rspec (>= 2.2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment