Re: [rspec-users] STDIN gets method issue with rspec

2010-02-28 Thread Tumas Bajoras
David Chelimsky wrote: > On Fri, Jan 22, 2010 at 1:46 PM, gokul murthy > wrote: >> Please kindly advise me, how to write spec for this. > Even though it seems simple, you've chosen a rather complex situation > to try to learn Rspec from. Did you pick this because you really need > to solve it, or

Re: [rspec-users] STDIN gets method issue with rspec

2010-01-23 Thread David Chelimsky
On Fri, Jan 22, 2010 at 1:46 PM, gokul murthy wrote: > 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

[rspec-users] STDIN gets method issue with rspec

2010-01-22 Thread gokul murthy
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. T