activity_consumer 0.5.2 → 0.5.3

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.
@@ -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.000000%200200
5
+ uri: http://user:secret@inoxio-cim.dev/activities.json?since=2013-06-12T20:00:00.000000%2B0200
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -97,7 +97,7 @@ module ActivityConsumer
97
97
  context "on delta" do
98
98
  it "returns a list only of new RemoteActivity items" do
99
99
  VCR.insert_cassette 'activities-delta'
100
- latest_timestamp = Time.parse('2013-06-12T20:00:00+02:00')
100
+ latest_timestamp = Time.parse('2013-06-12T20:00:00+0200')
101
101
  RemoteFooActivity.create(timestamp: latest_timestamp, action: 'create')
102
102
 
103
103
  activities = client.fetch
@@ -108,11 +108,11 @@ 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.000000+0200')
111
+ expect(client.send(:query_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
115
- expect(client.send(:request_params)).to eq('')
115
+ expect(client.send(:query_params)).to eq({})
116
116
  end
117
117
  end
118
118
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activity_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Mangner