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
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
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