Skip to content

Instantly share code, notes, and snippets.

@Peeja Peeja/Gemfile
Created Dec 2, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.