Revisions
-
justinko revised this gist
Feb 5, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ RSpec.configure do |config| config.filter_run_excluding :remote => true config.before :each, :remote => true do # Configure code to hit the Braintree service end end -
justinko created this gist
Feb 5, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ RSpec.configure do |config| config.filter_run_excluding :remote => true config.before(:each, :remote => true) do # Configure code to hit the Braintree service end end # Include your remote specs within your "normal" specs describe Sweeper do describe '.sweep!' do it 'does not raise an error' do expect { described_class.sweep! }.to_not raise_error end it 'hits the api...', :remote => true do end end end # Or, isolate them describe Sweeper, :remote => true do describe '.sweep!' do it 'hits the api...' do end end end # rspec spec # doesn't run remote specs # rspec spec --tag remote # runs only remote specs