In rspec, i want to test a rake task with some parameters passed in, so in the command line you would run this:
rake commissions:create_price_points options=1,2,3
and in the rake task i use ENV['options'].
In my rspec I have
rake = get_rake_environment(RAKE_FILE)
rake["commissions:create_price_points"].invoke(options=1,2,3)
This runs the rake fine but this, and other attempts that I've made with invoke and execute, do not pass the options into it. Just wondering if anyone has any insight on how to do this. Thanks!