Topic: testing
hey guys
i am a ruby on rails developer and i am doing testing for my application.
i faced one problem while i am doing an integration testing, here is what i did
get 'controller/method', :number => "9878"
what i am expecting from this while i run my test is to go to the controllers method by passing the parameter :number and let the controller call the model class which has a save method in it ....
it will do that, but when reaching to the save method in the model it will expect the data to be saved from the fixture, which i dont want. what i want is for it to use the data i passed :number.
can any one help me on this?
thanks in advance
mimi