Created
October 17, 2011 18:33
-
-
Save rdammkoehler/1293397 to your computer and use it in GitHub Desktop.
Isolated and not working
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
| require 'my' | |
| module MyHelper | |
| def default_config | |
| config = Hash.new | |
| config[:stuff] = :stuff | |
| end | |
| end | |
| module My | |
| describe My do | |
| include MyHelper | |
| before :each do | |
| let(:config) { | |
| default_config | |
| } | |
| end | |
| describe "Stuff" do | |
| before :all do | |
| config[:stuff] = Object.new | |
| end | |
| it "wasn't working" do | |
| puts "weee" | |
| end | |
| end | |
| it "might work" do | |
| config[:stuff] = Object.new | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment