如果有人能告诉我为什么这不会通过,将不胜感激,它变得 nil 而不是 value
class Hello
def hi
puts "hello"
end
end
describe Hello do
before do
@obj = Hello.new
end
describe "#hi" do
it "should say hello" do
@obj.hi.should == "hello"
end
end
end