Skip to content

Instantly share code, notes, and snippets.

@developwithpassion
Created July 27, 2012 20:49
Show Gist options
  • Save developwithpassion/3190414 to your computer and use it in GitHub Desktop.
Save developwithpassion/3190414 to your computer and use it in GitHub Desktop.
MacRuby 0.12 failing case
describe 'When extending an item with a dynamic module that dynamically defines methods' do
before (:each) do
@target = Object.new
@the_module = Module.new do
define_method :age do
33
end
end
end
before (:each) do
target.send(:extend,@the_module)
end
it 'should add defined methods to the target' do
@target.age.should == 33
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment