Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View Gemfile
1 2 3 4
source "https://rubygems.org"
 
gem "rspec"
gem "rake"
View Gemfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.1.3)
rake (0.9.2.2)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.1)
rspec-expectations (2.12.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.0)
 
PLATFORMS
ruby
 
DEPENDENCIES
rake
rspec
View Gemfile
1 2 3 4 5 6 7 8
task :default do
puts "This shows profile info:"
sh "rspec profile_spec.rb --profile --tag ~failing"
 
puts '-' * 80
puts "This doesn't:"
sh "rspec profile_spec.rb --profile"
end
View Gemfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
describe "profiling" do
it "is fast" do
end
 
it "is slow" do
sleep 3
end
 
it "is pending" do
pending "is pending"
end
 
it "is failing", failing: true do
throw "this is failing"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.