Permalink
Browse files

Allow usage of bin/rspec ./*/spec --only-failures

  • Loading branch information...
parndt committed Jul 28, 2016
1 parent 23781a8 commit c9612ef5594e6cf2d8b0f6aee3addef379e66b42
Showing with 10 additions and 2 deletions.
  1. +3 −0 .gitignore
  2. +4 −2 core/spec/features/refinery/core_spec.rb
  3. +3 −0 spec/spec_helper.rb
View
@@ -95,3 +95,6 @@ Gemfile.lock
#byebug_history
.byebug_history
# rspec failures
.rspec_failures
@@ -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
View
@@ -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,

0 comments on commit c9612ef

Please sign in to comment.