Commit 3120b941 authored by Hideki Yamane's avatar Hideki Yamane 🐈

Merge tag 'v1.0.0' into debian/sid

Version 1.0.0
parents 9438d78d 13997555
PATH
remote: .
specs:
rspec-instafail (0.5.0)
rspec-instafail (1.0.0)
rspec
GEM
......@@ -32,4 +32,4 @@ DEPENDENCIES
rspec-instafail!
BUNDLED WITH
1.11.2
1.12.3
......@@ -34,6 +34,7 @@ gem install rspec-instafail
# .rspec
--require rspec/instafail
--format RSpec::Instafail
--format progress # to keep dots appear
```
Alternatives
......
module RSpec
version = Gem.loaded_specs["rspec-core"].version
require "rspec/instafail/rspec_#{[3, version.segments.first].min}"
gem_spec = Gem::Specification.find_all_by_name('rspec-core').first
if gem_spec
version = gem_spec.version
require "rspec/instafail/rspec_#{[3, version.segments.first].min}"
else
require "rspec/instafail/rspec_1"
end
end
require 'rspec/core/formatters/progress_formatter'
require 'rspec/core/formatters/base_formatter'
module RSpec
class Instafail < RSpec::Core::Formatters::ProgressFormatter
class Instafail < RSpec::Core::Formatters::BaseFormatter
RSpec::Core::Formatters.register self, :example_failed
def initialize(output)
......
module RSpec
class Instafail
VERSION = '0.5.0'
VERSION = '1.0.0'
end
end
......@@ -60,7 +60,7 @@ describe 'RSpec::Instafail' do
context 'Rspec 3.x' do
before :all do
Bundler.with_clean_env do
@rspec_result = `cd spec/rspec_3 && bundle exec rspec a_test.rb -I ../../lib --require rspec/instafail --format RSpec::Instafail --no-color --order defined`
@rspec_result = `cd spec/rspec_3 && bundle exec rspec a_test.rb -I ../../lib --require rspec/instafail --format RSpec::Instafail --format progress --no-color --order defined`
end
end
......
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