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
|
end
|
||||||
|
|
||||||
it 'succeeds with json' do
|
it 'succeeds with json' do
|
||||||
get :show, :id => @conversation.id, :format => :json
|
Timecop.freeze do
|
||||||
response.should be_success
|
get :show, :id => @conversation.id, :format => :json
|
||||||
assigns[:conversation].should == @conversation
|
response.should be_success
|
||||||
response.body.should == @conversation.to_json
|
assigns[:conversation].should == @conversation
|
||||||
|
response.body.should == @conversation.to_json
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'redirects to index' do
|
it 'redirects to index' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue