You can reorganize it a bit in a way that will work on 1.8.7, 1.9.1
and 1.9.2:


module Foo
  module Quux
    class Baz
      def name
        "noise"
      end
    end
  end
end

describe Foo::Quux::Baz do
  it "has a name" do
    described_class.new.name.should == 'noise'
  end
end
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to