Displaying 1 result from an estimated 1 matches for "parameter_1".
Did you mean:
parameter1
2007 Aug 07
1
Rspec controller test
...ate any
actions at all. However, they still need testing! Some of these methods do
require parameters. I am wondering how I can pass the test cases as the
parameters to these targeted methods in the controller spec?? Below is a
simple example for illustration:
in the controller:
def method_for_test(parameter_1, parameter_2)
#do some coding
#no action
end
in the controller_spec:
it "should test the method_for_test" do
parameter_1
parameter_2
??how to pass them to method_for_test
end
Thank you all in advance.
--
View this message in context: http://www.nabble.com/Rspec-cont...