Skip to content

Commit

Permalink
Allow usage of bin/rspec ./*/spec --only-failures
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jul 28, 2016
1 parent 23781a8 commit c9612ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,6 @@ Gemfile.lock

#byebug_history
.byebug_history

# rspec failures
.rspec_failures
6 changes: 4 additions & 2 deletions core/spec/features/refinery/core_spec.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
require "spec_helper"

module Refinery
module Core
describe Engine, :type => :feature do
describe "#refinery_inclusion!" do
it "should be idempotent" do
expect { visit(refinery.root_path) }.to_not raise_error
expect { visit(refinery.root_path) }.not_to raise_error
Engine.refinery_inclusion!
Engine.refinery_inclusion!
expect { visit(refinery.root_path) }.to_not raise_error
expect { visit(refinery.root_path) }.not_to raise_error
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
activerecord dragonfly benchmark quiet_assets rubygems
).map { |noisy| /\b#{noisy}\b/ }
end

# Store last errors so we can run rspec with --only-failures
config.example_status_persistence_file_path = ".rspec_failures"
end

# Requires supporting files with custom matchers and macros, etc,
Expand Down

0 comments on commit c9612ef

Please sign in to comment.