Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created December 2, 2012 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Peeja/4191562 to your computer and use it in GitHub Desktop.
Save Peeja/4191562 to your computer and use it in GitHub Desktop.
source "https://rubygems.org"
gem "rspec"
gem "rake"
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
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment