title: Testing a rake task with passed parameters in rspec
body: <p>In rspec, i want to test a rake task with some parameters passed in, so in the command line you would run this:</p>
  
  <pre><code>rake commissions:create_price_points options=1,2,3
  </code></pre>
  
  <p>and in the rake task i use ENV['options'].</p>
  
  <p>In my rspec I have </p>
  
  <pre><code>rake = get_rake_environment(RAKE_FILE)
  rake["commissions:create_price_points"].invoke(options=1,2,3)
  </code></pre>
  
  <p>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!</p>