using timecop for interactions + whitespaces removed
This commit is contained in:
parent
d328cdaa96
commit
d9d7bbb74b
3 changed files with 15 additions and 13 deletions
|
|
@ -9,6 +9,7 @@ describe Diaspora::Relayable do
|
|||
|
||||
describe 'interacted_at' do
|
||||
it 'sets the interacted at of the parent to the created at of the relayable post' do
|
||||
Timecop.freeze do
|
||||
relayable = build_object
|
||||
relayable.save
|
||||
if relayable.parent.respond_to?(:interacted_at) #I'm sorry.
|
||||
|
|
@ -16,6 +17,7 @@ describe Diaspora::Relayable do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'validations' do
|
||||
describe 'on :author_id' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue