I am new to rspec. I am trying to write a spec for a simple ruby program i.e
a = gets.chomp
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.