title: Resque Job and rspec
body: <p>I have a Resque job that I am trying to test using rspec. The job looks something like: </p>
  
  <pre><code>class ImporterJob
  
  def perform
   job_key = options['test_key']
   user = options['user']
  end
  </code></pre>
  
  <p>I am using Resque status so I am using the create method to create the job like so: </p>
  
  <pre><code>ImporterJob.create({key:'test_key',user: 2})
  </code></pre>
  
  <p>If I try to create a job the same way in an rspec test, the options appear to not be making it to the job. As in, when I insert a binding.pry after <code>user = options['user']</code>, the options hash is empty. </p>
  
  <p>My rspec test looks like this: </p>
  
  <pre><code>describe ImporterJob do
    context 'create' do
  
      let(:import_options) {
        {
          'import_key' =&gt; 'test_key',
          'user' =&gt; 1,
          'model' =&gt; 'Test',
          'another_flag' =&gt; nil
        }
      }
  
      before(:all) do
        Resque.redis.set('test_key',csv_file_location('data.csv'))
      end
  
      it 'validates and imports csv data' do
        ImporterJob.create(import_options)
      end
    end
  end
  </code></pre>