Would appreciate if someone could tell me why this won’t pass, it’s getting nil instead of 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
Because
putsalways returnsnil,#hialways returnsnil.Change it to: