diff --git a/spec/controllers/conversations_controller_spec.rb b/spec/controllers/conversations_controller_spec.rb index b791c1cfb..702f41946 100644 --- a/spec/controllers/conversations_controller_spec.rb +++ b/spec/controllers/conversations_controller_spec.rb @@ -154,10 +154,12 @@ describe ConversationsController do end it 'succeeds with json' do - get :show, :id => @conversation.id, :format => :json - response.should be_success - assigns[:conversation].should == @conversation - response.body.should == @conversation.to_json + Timecop.freeze do + get :show, :id => @conversation.id, :format => :json + response.should be_success + assigns[:conversation].should == @conversation + response.body.should == @conversation.to_json + end end it 'redirects to index' do