Last active
December 20, 2015 05:38
-
-
Save enricostano/6079539 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'conversations/base' do | |
subject do | |
Timecop.freeze(10.minutes.ago) { @conversation = FactoryGirl.create(:conversation) } | |
Timecop.return | |
@conversation | |
end | |
before :each do | |
assign(:object, subject) | |
end | |
it 'expire the conversation when the conversation is updated' do | |
expect { | |
subject.update_attribute(:name, 'test') | |
subject.reload | |
}.to change(self, :render) | |
end | |
end |
Author
enricostano
commented
Jul 25, 2013
Time now UTC: 2013-07-25 14:20:14 UTC
SPEC inspect: #<Conversation id: 1, project_id: 1, user_id: 1, name: "The Master Plan", created_at: "2013-07-25 14:10:10", updated_at: "2013-07-25 14:10:10">
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment