Created
December 2, 2012 23:27
-
-
Save Peeja/4191562 to your computer and use it in GitHub Desktop.
Reproducing https://github.com/rspec/rspec-core/issues/730. Run `rake`.
This file contains 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 characters
source "https://rubygems.org" | |
gem "rspec" | |
gem "rake" |
This file contains 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 characters
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 |
This file contains 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 characters
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 |
This file contains 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 characters
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