Re: [rspec-users] Newbie testing questions

2012-09-09 Thread David Chelimsky
On Fri, Sep 7, 2012 at 2:14 PM, Anand K V R. wrote: > Hi Friends. > > I'm an absolute Tester (little experience on development upto college > level) and had been asked to Test an application developed in Rails. As > our client selected Rspec, I have no other go. > > Can anyone help me with a basic

Re: [rspec-users] Stub a controller method containing arguments

2012-09-09 Thread David Chelimsky
On Sun, Sep 9, 2012 at 1:00 AM, jeevan reddy wrote: > controller code: > > class BooksController < ApplicationController > def index >param1, param2 = "123", "456" > @test = method_1(param1, param2) > end > > private > def method_1(param1, param2) > return "test" > end > end