title: Mock the date for Date.parse
body: <p>I am doing some tests on date parsing. I was able to mock the date by doing as below:</p>
  
  <pre><code>my_str_date = '08022014at0600 +00:00'
  my_new_date = DateTime.strptime(my_str_date, "%d%m%Yat%H%M %z").to_time
  Time.stub(:now).and_return(my_new_date)
  </code></pre>
  
  <p>This is good enough most of the time, but when I want to get a date based on the day of the week, I do <code>Date.parse('wednesday')</code> for example, and unfortunately, it takes the current date. </p>
  
  <p>I don't know how to find a global solution to simulate a specific date in the year that would work for <code>Time.now</code> and <code>Date.parse</code>. Any idea?</p>
  
  <p>I though about <a href="https://github.com/travisjeffery/timecop" rel="nofollow">Timecop</a> library, but it does not seem to handle my case.</p>