Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Forked from enricostano/spec.rb
Last active December 20, 2015 05:39
Show Gist options
  • Save shepmaster/6079927 to your computer and use it in GitHub Desktop.
Save shepmaster/6079927 to your computer and use it in GitHub Desktop.
describe 'conversations/base' do
subject do
Timecop.freeze(10.minutes.ago) do
FactoryGirl.create(:conversation)
end
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment