freeze time in conversations show spec to make ree travis happy

This commit is contained in:
Maxwell Salzberg 2012-03-17 19:06:26 -07:00
parent aee17798c1
commit d668b21cd4

View file

@ -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