Hi,

I am new to rspec. I am trying to write a spec for a simple ruby program i.e

class First
def test
a = gets.chomp
return a
end
end

I have tried in different ways test method is called from the spec file. but
gets.chomp is not executing…

Please kindly advise me, how to write spec for this.

Thanks
Gokul

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to