Skip to content

Instantly share code, notes, and snippets.

@rsanheim
Created September 14, 2009 01:56
Show Gist options
  • Save rsanheim/186433 to your computer and use it in GitHub Desktop.
Save rsanheim/186433 to your computer and use it in GitHub Desktop.
~/src/oss/rspec (dc/master)$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.8.0]
~/src/oss/rspec (dc/master)$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.3, 2.3.2)
actionpack (2.3.3, 2.3.2)
activerecord (2.3.3, 2.3.2)
activeresource (2.3.3, 2.3.2)
activesupport (2.3.3, 2.3.2)
bmabey-fakefs (0.1.1)
builder (2.1.2)
cucumber (0.3.99)
diff-lcs (1.1.2)
fastri (0.3.1.1)
flexmock (0.8.6)
git (1.2.2)
grit (1.1.1)
heckle (1.4.3)
hoe (2.3.3)
hpricot (0.8.1)
htmlentities (4.2.0)
jeweler (1.2.1)
log_buddy (0.4.10)
mime-types (1.16)
mocha (0.9.7)
nokogiri (1.3.3)
ParseTree (3.0.4)
polyglot (0.2.8)
rack (1.0.0)
rails (2.3.3, 2.3.2)
rake (0.8.7)
rdoc (2.4.3)
rr (0.10.2)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubyforge (1.0.4)
RubyInline (3.8.3)
sexp_processor (3.0.3)
spicycode-micronaut (0.3.0)
syntax (1.0.0)
term-ansicolor (1.0.4)
test-unit (2.0.3, 1.2.3)
treetop (1.4.1)
ZenTest (4.1.4)
~/src/oss/rspec (dc/master)$ rake
(in /Users/rsanheim/src/oss/rspec)
Profiling enabled.
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................**......................................................................................................................................................................................................................................................................................................................................................................F...........................................................F...........................................................................................................................................................................................................................................................
Top 10 slowest examples:
0.6558620 ExampleGroup with test/unit/interop with passing examples should output 0 failures
0.5939360 Test::Unit::TestCase with passing test case should output 0 failures
0.5549820 ExampleGroup with test/unit/interop options hash should be exposed
0.5404440 Test::Unit::TestCase with failing test case should return an exit code of 256
0.5354520 ExampleGroup with test/unit/interop with passing examples should return an exit code of 0
0.5285080 ExampleGroup with test/unit/interop with failing examples should output 1 failure
0.5259410 ExampleGroup with test/unit/interop with failing examples should return an exit code of 256
0.4916870 ExampleGroup with test/unit/interop with example that raises an error should return an exit code of 256
0.4899580 ExampleGroup with test/unit/interop with example that raises an error should output 1 failure
0.4679050 Test::Unit::TestCase with test case that raises an error should output 1 failure
Pending:
mock failure should tell you when it receives the right message with the wrong args if you stub the method (fix bug 15719)
/Users/rsanheim/src/oss/rspec/spec/spec/mocks/bug_report_15719_spec.rb:16:in `block in <module:Mocks>'
a message expectation on a base class object should correctly pick up message sent to it subclass (fix for http://rspec.lighthouseapp.com/projects/5645/tickets/496)
/Users/rsanheim/src/oss/rspec/spec/spec/mocks/bug_report_496_spec.rb:11:in `block in <module:BugReport496>'
1)
'Spec::Runner::Formatter::HtmlFormatter should produce HTML identical to the one we designed manually with --diff' FAILED
expected: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<title>RSpec results</title>\n<meta http-equiv=\"Expires\" content=\"-1\">\n<meta http-equiv=\"Pragma\" content=\"no-cache\">\n<style type=\"text/css\">\n body {\n margin: 0;\n padding: 0;\n background: #fff;\n font-size: 80%;\n }\n </style>\n<script type=\"text/javascript\">\n // <![CDATA[\nfunction moveProgressBar(percentDone) {\n document.getElementById(\"rspec-header\").style.width = percentDone +\"%\";\n}\nfunction makeRed(element_id) {\n document.getElementById(element_id).style.background = '#C40D0D';\n document.getElementById(element_id).style.color = '#FFFFFF';\n}\n\nfunction makeYellow(element_id) {\n if (element_id == \"rspec-header\" && document.getElementById(element_id).style.background != '#C40D0D')\n {\n document.getElementById(element_id).style.background = '#FAF834';\n document.getElementById(element_id).style.color = '#000000';\n }\n else\n {\n document.getElementById(element_id).style.background = '#FAF834';\n document.getElementById(element_id).style.color = '#000000';\n }\n}\n\n // ]]>\n </script><style type=\"text/css\">\n#rspec-header {\n background: #65C400; color: #fff; height: 4em;\n}\n\n.rspec-report h1 {\n margin: 0px 10px 0px 10px;\n padding: 10px;\n font-family: \"Lucida Grande\", Helvetica, sans-serif;\n font-size: 1.8em;\n position: absolute;\n}\n\n#summary {\n margin: 0; padding: 5px 10px;\n font-family: \"Lucida Grande\", Helvetica, sans-serif;\n text-align: right;\n top: 0px;\n right: 0px;\n float:right;\n}\n\n#summary p {\n margin: 0 0 0 2px;\n}\n\n#summary #totals {\n font-size: 1.2em;\n}\n\n.example_group {\n margin: 0 10px 5px;\n background: #fff;\n}\n\ndl {\n margin: 0; padding: 0 0 5px;\n font: normal 11px \"Lucida Grande\", Helvetica, sans-serif;\n}\n\ndt {\n padding: 3px;\n background: #65C400;\n color: #fff;\n font-weight: bold;\n}\n\ndd {\n margin: 5px 0 5px 5px;\n padding: 3px 3px 3px 18px;\n}\n\ndd.spec.passed {\n border-left: 5px solid #65C400;\n border-bottom: 1px solid #65C400;\n background: #DBFFB4; color: #3D7700;\n}\n\ndd.spec.failed {\n border-left: 5px solid #C20000;\n border-bottom: 1px solid #C20000;\n color: #C20000; background: #FFFBD3;\n}\n\ndd.spec.not_implemented {\n border-left: 5px solid #FAF834;\n border-bottom: 1px solid #FAF834;\n background: #FCFB98; color: #131313;\n}\n\ndd.spec.pending_fixed {\n border-left: 5px solid #0000C2;\n border-bottom: 1px solid #0000C2;\n color: #0000C2; background: #D3FBFF;\n}\n\n.backtrace {\n color: #000;\n font-size: 12px;\n}\n\na {\n color: #BE5C00;\n}\n\n/* Ruby code, style similar to vibrant ink */\n.ruby {\n font-size: 12px;\n font-family: monospace;\n color: white;\n background-color: black;\n padding: 0.1em 0 0.2em 0;\n}\n\n.ruby .keyword { color: #FF6600; }\n.ruby .constant { color: #339999; }\n.ruby .attribute { color: white; }\n.ruby .global { color: white; }\n.ruby .module { color: white; }\n.ruby .class { color: white; }\n.ruby .string { color: #66FF00; }\n.ruby .ident { color: white; }\n.ruby .method { color: #FFCC00; }\n.ruby .number { color: white; }\n.ruby .char { color: white; }\n.ruby .comment { color: #9933CC; }\n.ruby .symbol { color: white; }\n.ruby .regex { color: #44B4CC; }\n.ruby .punct { color: white; }\n.ruby .escape { color: white; }\n.ruby .interp { color: white; }\n.ruby .expr { color: white; }\n\n.ruby .offending { background-color: gray; }\n.ruby .linenum {\n width: 75px;\n padding: 0.1em 1em 0.2em 0;\n color: #000000;\n background-color: #FFFBD3;\n}\n\n </style>\n</head>\n<body>\n<div class=\"rspec-report\">\n\n<div id=\"rspec-header\">\n <div id=\"label\">\n <h1>RSpec Code Examples</h1>\n </div>\n\n <div id=\"summary\">\n <p id=\"totals\"> </p>\n <p id=\"duration\"> </p>\n </div>\n</div>\n\n<div class=\"results\">\n<div class=\"example_group\">\n <dl>\n<dt id=\"example_group_1\">Mocker</dt>\n <script type=\"text/javascript\">moveProgressBar('5.8');</script><dd class=\"spec passed\"><span class=\"passed_spec_name\">should be able to call mock()</span></dd>\n <script type=\"text/javascript\">makeRed('rspec-header');</script><script type=\"text/javascript\">makeRed('example_group_1');</script><script type=\"text/javascript\">moveProgressBar('11.7');</script><dd class=\"spec failed\">\n <span class=\"failed_spec_name\">should fail when expected message not received</span>\n <div class=\"failure\" id=\"failure_1\">\n <div class=\"message\"><pre>Mock \"poke me\" expected :poke with (any args) once, but received it 0 times</pre></div>\n \n <pre class=\"ruby\"><code><span class=\"linenum\">9</span> it \"should fail when expected message not received\" do\n<span class=\"linenum\">10</span> mock = mock(\"poke me\")\n<span class=\"offending\"><span class=\"linenum\">11</span> mock.should_receive(:poke)</span>\n<span class=\"linenum\">12</span> end\n<span class=\"linenum\">13</span> \n<span class=\"linenum\">14</span><span class=\"comment\"># gem install syntax to get syntax highlighting</span></code></pre>\n </div>\n </dd>\n <script type=\"text/javascript\">moveProgressBar('17.6');</script><dd class=\"spec failed\">\n <span class=\"failed_spec_name\">should fail when messages are received out of order</span>\n <div class=\"failure\" id=\"failure_2\">\n <div class=\"message\"><pre>Mock \"one two three\" received :three out of order</pre></div>\n \n <pre class=\"ruby\"><code><span class=\"linenum\">18</span> mock.should_receive(:three).ordered\n<span class=\"linenum\">19</span> mock.one\n<span class=\"offending\"><span class=\"linenum\">20</span> mock.three</span>\n<span class=\"linenum\">21</span> mock.two\n<span class=\"linenum\">22</span> end\n<span class=\"linenum\">23</span><span class=\"comment\"># gem install syntax to get syntax highlighting</span></code></pre>\n </div>\n </dd>\n <script type=\"text/javascript\">moveProgressBar('23.5');</script><dd class=\"spec failed\">\n <span class=\"failed_spec_name\">should get yelled at when sending unexpected messages</span>\n <div class=\"failure\" id=\"failure_3\">\n <div class=\"message\"><pre>Mock \"don't talk to me\" expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>\n \n <pre class=\"ruby\"><code><span class=\"linenum\">25</span> mock = mock(\"don't talk to me\")\n<span class=\"linenum\">26</span> mock.should_not_receive(:any_message_at_all)\n<span class=\"offending\"><span class=\"linenum\">27</span> mock.any_message_at_all</span>\n<span class=\"linenum\">28</span> end\n<span class=\"linenum\">29</span>\n<span class=\"linenum\">30</span><span class=\"comment\"># gem install syntax to get syntax highlighting</span></code></pre>\n </div>\n </dd>\n <script type=\"text/javascript\">moveProgressBar('29.4');</script><dd class=\"spec pending_fixed\">\n <span class=\"failed_spec_name\">has a bug we need to fix</span>\n <div class=\"failure\" id=\"failure_4\">\n <div class=\"message\"><pre%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment