freeze time in conversations show spec to make ree travis happy
This commit is contained in:
parent
aee17798c1
commit
d668b21cd4
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue