Why do you think that it's not working in regular Ruby either?

Check the following example to see that it does:
module MyModule
  MyConstant = 1
  def my_method
    2
  end
end

class MyClass
  include MyModule

  def initialize
    p my_method
    p MyModule::MyConstant
    p MyConstant
  end
end

MyClass.new

Jarmo

On Jun 16, 5:20 pm, Matt Wynne <m...@mattwynne.net> wrote:
> That wouldn't work in regular ruby either. You need to run the describe block 
> inside the module / namespace.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to