Created
July 13, 2011 17:35
-
-
Save timuruski/1080824 to your computer and use it in GitHub Desktop.
Horrible test times
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 characters
| # one_equals_one.rb | |
| describe "1 == 1" do | |
| specify { 1.should == 1 } | |
| end |
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 characters
| # one_equals_one_with_spec_helper.rb | |
| require 'spec_helper' | |
| describe "1 == 1" do | |
| specify { 1.should == 1 } | |
| end |
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 characters
| $ time rspec one_equals_one.rb | |
| . | |
| Finished in 0.00034 seconds | |
| 1 example, 0 failures | |
| real 0m0.342s | |
| user 0m0.254s | |
| sys 0m0.087s | |
| $ time rspec one_equals_one_with_spec_helper.rb | |
| . | |
| Finished in 0.53882 seconds | |
| 1 example, 0 failures | |
| real 0m8.161s | |
| user 0m6.836s | |
| sys 0m1.028s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment