Skip to content

Instantly share code, notes, and snippets.

@myronmarston
Created October 1, 2016 04:07
Show Gist options
  • Select an option

  • Save myronmarston/f14e41eb411e34c6424b07accc40260d to your computer and use it in GitHub Desktop.

Select an option

Save myronmarston/f14e41eb411e34c6424b07accc40260d to your computer and use it in GitHub Desktop.

Revisions

  1. myronmarston revised this gist Oct 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion spec_helper.rb
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    RSpec.configure do |rspec|
    if ENV["CI"]
    rspec.before(:example, :focus) do
    raise "Do not commit examples tagged with :focus
    raise "Do not commit examples tagged with :focus"
    end
    else
    rspec.filter_run_when_matching :focus
  2. myronmarston created this gist Oct 1, 2016.
    9 changes: 9 additions & 0 deletions spec_helper.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    RSpec.configure do |rspec|
    if ENV["CI"]
    rspec.before(:example, :focus) do
    raise "Do not commit examples tagged with :focus
    end
    else
    rspec.filter_run_when_matching :focus
    end
    end