Normally to pass parameters via in RSpec we do:
params[:my_key] = my_value
get :my_method
Where my_method
deals with what it received from params. But in my controller I have a method, which takes args directly i.e.:
def my_method(*args)
...
end
How do I call the method with those args from within the test? I've tried get :my_method(args)
but Ruby interpreter complains about syntax error.