activity_consumer 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/activity_consumer/remote_activity.rb +4 -1
- data/app/services/activity_consumer/remote_activity_importer.rb +1 -1
- data/lib/activity_consumer/version.rb +1 -1
- data/spec/dummy/log/test.log +2710 -0
- data/spec/fixtures/vcr_cassettes/activities-delta.yml +1 -1
- data/spec/models/activity_consumer/remote_activity_spec.rb +1 -1
- data/spec/services/activity_consumer/remote_activity_rest_client_spec.rb +1 -1
- metadata +1 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://user:secret@inoxio-cim.dev/activities.json?since=2013-06-12T20:00:00%
|
5
|
+
uri: http://user:secret@inoxio-cim.dev/activities.json?since=2013-06-12T20:00:00.000000%200200
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -10,7 +10,7 @@ module ActivityConsumer
|
|
10
10
|
RemoteMyTestActivity.create(timestamp: Time.parse('2013-09-25T12:00:00+0200'), action: 'create', payload: {})
|
11
11
|
RemoteMyTestActivity.create(timestamp: Time.parse('2013-09-24T14:00:00+0200'), action: 'create', payload: {})
|
12
12
|
|
13
|
-
expect(ActivityConsumer::RemoteActivity.latest_timestamp).to eq(
|
13
|
+
expect(ActivityConsumer::RemoteActivity.latest_timestamp).to eq('2013-09-25T12:00:00.000000+0200')
|
14
14
|
end
|
15
15
|
|
16
16
|
it "has a short type" do
|
@@ -108,7 +108,7 @@ module ActivityConsumer
|
|
108
108
|
|
109
109
|
it "uses a correctly formatted query parameter to get a delta" do
|
110
110
|
RemoteFooActivity.create(timestamp: Time.parse('2013-09-25T12:00:00+0200'), action: 'create')
|
111
|
-
expect(client.send(:request_params)).to eq('?since=2013-09-25T12:00:00+
|
111
|
+
expect(client.send(:request_params)).to eq('?since=2013-09-25T12:00:00.000000+0200')
|
112
112
|
end
|
113
113
|
|
114
114
|
it "fallsback to full import if there is no activity yet" do
|