Skip to content

Instantly share code, notes, and snippets.

@rdammkoehler
Created October 17, 2011 18:33
Show Gist options
  • Select an option

  • Save rdammkoehler/1293397 to your computer and use it in GitHub Desktop.

Select an option

Save rdammkoehler/1293397 to your computer and use it in GitHub Desktop.
Isolated and not working
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