fix created_at in factories
The present Diaspora's relayable signing process is not compatible with DateTime.now.utc string format, so fall back to default value.
This commit is contained in:
parent
127b603558
commit
8afd3ee0b5
1 changed files with 5 additions and 5 deletions
|
|
@ -74,7 +74,7 @@ module DiasporaFederation
|
||||||
guid
|
guid
|
||||||
diaspora_id
|
diaspora_id
|
||||||
public(true)
|
public(true)
|
||||||
created_at { Time.zone.now }
|
created_at { Time.now.utc }
|
||||||
remote_photo_path "https://diaspora.example.tld/uploads/images/"
|
remote_photo_path "https://diaspora.example.tld/uploads/images/"
|
||||||
remote_photo_name "f2a41e9d2db4d9a199c8.jpg"
|
remote_photo_name "f2a41e9d2db4d9a199c8.jpg"
|
||||||
text "what you see here..."
|
text "what you see here..."
|
||||||
|
|
@ -99,7 +99,7 @@ module DiasporaFederation
|
||||||
guid
|
guid
|
||||||
diaspora_id
|
diaspora_id
|
||||||
public(true)
|
public(true)
|
||||||
created_at { Time.zone.now }
|
created_at { Time.now.utc }
|
||||||
end
|
end
|
||||||
|
|
||||||
factory :request_entity, class: DiasporaFederation::Entities::Request do
|
factory :request_entity, class: DiasporaFederation::Entities::Request do
|
||||||
|
|
@ -127,7 +127,7 @@ module DiasporaFederation
|
||||||
factory :conversation_entity, class: DiasporaFederation::Entities::Conversation do
|
factory :conversation_entity, class: DiasporaFederation::Entities::Conversation do
|
||||||
guid
|
guid
|
||||||
subject "this is a very informative subject"
|
subject "this is a very informative subject"
|
||||||
created_at { DateTime.now.utc }
|
created_at { Time.now.utc }
|
||||||
messages []
|
messages []
|
||||||
diaspora_id
|
diaspora_id
|
||||||
participant_ids { 3.times.map { generate(:diaspora_id) }.join(";") }
|
participant_ids { 3.times.map { generate(:diaspora_id) }.join(";") }
|
||||||
|
|
@ -136,7 +136,7 @@ module DiasporaFederation
|
||||||
factory :message_entity, class: DiasporaFederation::Entities::Message, parent: :relayable_entity do
|
factory :message_entity, class: DiasporaFederation::Entities::Message, parent: :relayable_entity do
|
||||||
guid
|
guid
|
||||||
text "this is a very informative text"
|
text "this is a very informative text"
|
||||||
created_at { DateTime.now.utc }
|
created_at { Time.now.utc }
|
||||||
diaspora_id
|
diaspora_id
|
||||||
conversation_guid { generate(:guid) }
|
conversation_guid { generate(:guid) }
|
||||||
end
|
end
|
||||||
|
|
@ -153,7 +153,7 @@ module DiasporaFederation
|
||||||
guid
|
guid
|
||||||
diaspora_id
|
diaspora_id
|
||||||
public(true)
|
public(true)
|
||||||
created_at { DateTime.now.utc }
|
created_at { Time.now.utc }
|
||||||
provider_display_name { "the testsuite" }
|
provider_display_name { "the testsuite" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue