Permalink
Browse files

Run the tests as if it's December

  • Loading branch information...
1 parent f21d6ad commit 2935169ec97ef3ed8699c99a7a83a71992ca0f79 @andrew andrew committed Dec 25, 2012
Showing with 8 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +2 −0 Gemfile.lock
  3. +5 −0 spec/spec_helper.rb
View
@@ -60,6 +60,7 @@ group :test do
gem 'shoulda-matchers'
gem 'webmock', :require => false
gem 'poltergeist'
+ gem 'timecop'
end
group :production do
View
@@ -285,6 +285,7 @@ GEM
rack (>= 1.0.0)
thor (0.16.0)
tilt (1.3.3)
+ timecop (0.3.5)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
@@ -355,6 +356,7 @@ DEPENDENCIES
sinon-rails
therubyracer (= 0.10.2)
thin
+ timecop
twitter
twitter-bootstrap-rails
uglifier (>= 1.0.3)
View
@@ -85,6 +85,11 @@
config.before do
User.any_instance.stub(:estimate_skills).and_return(nil)
Twitter::Client.any_instance.stub(:update)
+ Timecop.freeze(Date.parse('12/12/2012'))
+ end
+
+ config.after do
+ Timecop.return
end
end
end

0 comments on commit 2935169

Please sign in to comment.