Created
July 21, 2010 01:18
-
-
Save rdp/483890 to your computer and use it in GitHub Desktop.
rspec before and after stressor
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
| describe 'ScreenTracker' do | |
| before(:all) do | |
| p 'before all' | |
| end | |
| before do | |
| end | |
| it "can take a regex or string" do | |
| end | |
| context "negative numbers should result in an offset" do | |
| it "should allow for negative sizes" do | |
| end | |
| end | |
| it "should parse yaml appropro" do | |
| end | |
| context "given a real player that is moving" do | |
| before do | |
| p 'before 1' | |
| end | |
| it "should be able to poll the screen to know when something changes" do | |
| end | |
| it "should use OCR against the changes appropriately" do | |
| end | |
| end | |
| it "should have next versions" do | |
| pending "next versions" do | |
| it "should stay on it with the mouse for the first 40 seconds after any drastic change" | |
| end | |
| end | |
| after(:all) do | |
| p 'after all' | |
| end | |
| 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
| C:\dev\ruby\scene-skipper\spec>spec bad.spec2.rb | |
| "before all" | |
| ..*"after all" | |
| "before all" | |
| ."after all" | |
| "before all" | |
| "before 1" | |
| ."before 1" | |
| ."after all" | |
| Pending: | |
| ScreenTracker should have next versions (next versions) | |
| C:/dev/ruby/scene-skipper/spec/bad.spec2.rb:39:in `block in <top (required)>' | |
| Finished in 0.233 seconds | |
| 6 examples, 0 failures, 1 pending | |
| C:\dev\ruby\scene-skipper\spec>spec -v | |
| rspec 1.3.0 | |
| C:\dev\ruby\scene-skipper\spec>ruby -v | |
| ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] |
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
| C:\dev\ruby\scene-skipper\spec>rspec bad.spec2.rb | |
| "before all" | |
| ..*."after all" | |
| "before 1" | |
| ."before 1" | |
| . | |
| C:\dev\ruby\scene-skipper\spec>rspec -v | |
| 2.0.0.beta.17 | |
| C:\dev\ruby\scene-skipper\spec>ruby -v | |
| ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment