发布时间: 2012-07-30 10:29:00
module Say def hello "hello" end end
class DummyClass end before(:each) do @dummy_class = DummyClass.new @dummy_class.extend(Say) end it "get hello string" do @dummy_class.hello.should == "hello" end