roqua-rom-api 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91d667b8631aa54589b366efad47bfeddef143d7
4
- data.tar.gz: a795fc9d8ea7c2184b4ab58f378618c736457f76
3
+ metadata.gz: 9e4c9540bc5e468f4b51c4cfab6016fbcea74241
4
+ data.tar.gz: 1404eaf705529199115775862aa7fe202fe80d16
5
5
  SHA512:
6
- metadata.gz: cff1500644d1f5c89885b46055bd0283633d306cae2cf138904a0a5b1f23aa84c8c8dc40c89f42d0adee87a404dd43285af53f744f91890acacb12f00d424f7c
7
- data.tar.gz: dd08a2bb94242e2945f6c1417e4c29568bdbcd1b8622abcbb57d2f4b5d10f3295641098cf3eff41da0c02489b56fa2aa2abc227c8336cc832e9e8054a29af5e7
6
+ metadata.gz: afcb437a07656bc8035000c59412f0799456b25f898409a976e1d8cd63f3676deca20919ecd9eea4501747223f585a60acd621e80500544238dca2be60847988
7
+ data.tar.gz: 288b8f042d92285cce3cbd16c793fb0cdd233d789ad3178794a8bb765086a068bdea06f24c96504fc71ff495627ef28bc12b8c5bae3d597495bce35df33fe9bd
data/ChangeLog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ### 0.0.9 / 2014-04-14
2
+
3
+ * Added Virtus to the gemspec
4
+ * Model::Response date attributes are DateTimes now.
5
+ * Added list_protocol_subscriptions
6
+ * Add fill_out sessions api
7
+
1
8
  ### 0.0.8 / 2014-03-13
2
9
 
3
10
  * rename env vars for consistency with roqua-core-api gem
data/Rakefile CHANGED
@@ -24,8 +24,10 @@ task default: :spec
24
24
 
25
25
  task :release do
26
26
  # run bundle in parent dir to update Gemfile.lock
27
- `cd ../ && bundle`
28
- `git add ../Gemfile.lock && git commit -m 'update roqua-core-api in Gemfile.lock'`
27
+ Bundler.with_clean_env do
28
+ `bundle --gemfile=../Gemfile`
29
+ end
30
+ `git add ../Gemfile.lock && git commit -m 'update roqua-rom-api in Gemfile.lock'`
29
31
  # fetch tags first to prevent errors when releasing gem
30
32
  `git fetch --tags`
31
33
  end
data/lib/roqua/rom_api.rb CHANGED
@@ -3,4 +3,15 @@ require 'roqua/rom_api/version'
3
3
  require 'roqua/rom_api/sessions'
4
4
  require 'roqua/rom_api/models'
5
5
  require 'roqua/rom_api/start_protocol_subscription'
6
- require 'roqua/rom_api/list_responses'
6
+ require 'roqua/rom_api/stop_protocol_subscription'
7
+ require 'roqua/rom_api/start_fill_out_session'
8
+ require 'roqua/rom_api/list_responses'
9
+ require 'roqua/rom_api/list_protocol_subscriptions'
10
+
11
+ module Roqua
12
+ module RomApi
13
+ # Raised when a request failed due to an expired/non-existant session.
14
+ class NoSession < StandardError; end
15
+ class Unauthorized < StandardError; end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ module Roqua
2
+ module RomApi
3
+ # @api private
4
+ class ListProtocolSubscriptions < ActiveInteraction::Base
5
+ string :dossier_id
6
+ def execute
7
+ response = RomApi.basic_auth_session.get "/dossiers/#{dossier_id}/protocol_subscriptions"
8
+ response['protocol_subscriptions'].map { |s| Models::ProtocolSubscription.new(s) }
9
+ end
10
+ end
11
+ end
12
+ end
@@ -3,13 +3,10 @@ module Roqua
3
3
  # @api private
4
4
  class ListResponses < ActiveInteraction::Base
5
5
  string :dossier_id
6
-
7
6
  def execute
8
7
  response = RomApi.basic_auth_session.get "/dossiers/#{dossier_id}/responses"
9
- JSON.parse(response.body)['responses'].map do |response_entry|
10
- Models::Response.new response_entry
11
- end
8
+ response['responses'].map { |r| Models::Response.new(r) }
12
9
  end
13
10
  end
14
11
  end
15
- end
12
+ end
@@ -1 +1,2 @@
1
- require 'roqua/rom_api/models/response'
1
+ require 'roqua/rom_api/models/response'
2
+ require 'roqua/rom_api/models/protocol_subscription'
@@ -0,0 +1,19 @@
1
+ module Roqua
2
+ module RomApi
3
+ module Models
4
+ class ProtocolSubscription
5
+ include Virtus # deprecated, should be Virtus.model for > 1.0
6
+
7
+ attribute :id, Integer
8
+ attribute :daily_start_time, Integer
9
+ attribute :next_run_time, DateTime
10
+ attribute :start_at, DateTime
11
+ attribute :stop_at, DateTime
12
+ attribute :state, String
13
+ attribute :protocol_key, String
14
+ attribute :protocol_name, String
15
+
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,20 +1,19 @@
1
+ require 'virtus'
2
+
1
3
  module Roqua
2
4
  module RomApi
3
5
  module Models
4
6
  class Response
5
- attr_reader :response, :name, :open_from, :open_till, :completing_url, :completer_type, :completed_at, :status
7
+ include Virtus # deprecated, should be Virtus.model for > 1.0
6
8
 
7
- def initialize(response)
8
- @response = response
9
- @name = response['name']
10
- @open_from = response['open_from']
11
- @open_till = response['open_till']
12
- @completing_url = response['completing_url']
13
- @completer_type = response['completer_type']
14
- @status = response['status']
15
- @completed_at = response['completed_at']
16
- end
9
+ attribute :name, String
10
+ attribute :open_from, DateTime
11
+ attribute :open_till, DateTime
12
+ attribute :completing_url, String
13
+ attribute :completer_type, String
14
+ attribute :completed_at, DateTime
15
+ attribute :status, String
17
16
  end
18
17
  end
19
18
  end
20
- end
19
+ end
@@ -33,15 +33,31 @@ module Roqua
33
33
  end
34
34
 
35
35
  def delete(path, params = {})
36
- HTTParty.delete(full_url_for(path), query: params, basic_auth: basic_auth)
36
+ perform_request_or_fail do
37
+ HTTParty.delete(full_url_for(path), query: params, basic_auth: basic_auth)
38
+ end
37
39
  end
38
40
 
39
41
  private
40
42
 
41
43
  def perform_request_or_fail(&block)
42
44
  response = yield
43
- fail response.parsed_response unless (200..299).include? response.code
44
- response
45
+ case response.code
46
+ when 200..299, 422
47
+ response
48
+ when 401
49
+ access_denied(response)
50
+ else
51
+ fail response.parsed_response || 'error'
52
+ end
53
+ end
54
+
55
+ def access_denied(response)
56
+ if response.headers['WWW-Authenticate']
57
+ fail NoSession
58
+ else
59
+ fail Unauthorized
60
+ end
45
61
  end
46
62
 
47
63
  def full_url_for(path)
@@ -58,4 +74,4 @@ module Roqua
58
74
  end
59
75
  end
60
76
  end
61
- end
77
+ end
@@ -0,0 +1,16 @@
1
+ module Roqua
2
+ module RomApi
3
+ # @api private
4
+ class StartFillOutSession < ActiveInteraction::Base
5
+ string :dossier_id
6
+ string :questionnaire_key
7
+ string :return_to
8
+
9
+ def execute
10
+ RomApi.basic_auth_session.post("/dossiers/#{dossier_id}/fill_out_sessions",
11
+ questionnaire_key: questionnaire_key,
12
+ return_to: return_to).parsed_response
13
+ end
14
+ end
15
+ end
16
+ end
@@ -7,10 +7,9 @@ module Roqua
7
7
  time :start_at, default: nil
8
8
 
9
9
  def execute
10
- options = {dossier_id: dossier_id,
11
- protocol_key: protocol_key}
10
+ options = {protocol_key: protocol_key}
12
11
  options[:start_at] = start_at.to_i if start_at
13
- RomApi.basic_auth_session.post('/protocol_subscriptions', options).parsed_response
12
+ RomApi.basic_auth_session.post("/dossiers/#{dossier_id}/protocol_subscriptions", options).parsed_response
14
13
  end
15
14
  end
16
15
  end
@@ -0,0 +1,14 @@
1
+ module Roqua
2
+ module RomApi
3
+ # @api private
4
+ class StopProtocolSubscription < ActiveInteraction::Base
5
+ string :dossier_id
6
+ string :protocol_subscription_id
7
+
8
+ def execute
9
+ url = "/dossiers/#{dossier_id}/protocol_subscriptions/#{protocol_subscription_id}"
10
+ RomApi.basic_auth_session.delete(url).parsed_response
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module RomApi
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency 'httparty', '~> 0.12.0'
20
20
  gem.add_dependency 'active_interaction', '~> 1.1'
21
+ gem.add_dependency 'virtus' # , '~> 1.0' # Pavlov wants 0.5.5,
22
+ # we keep it simple to be compliant with both.
21
23
 
22
24
  gem.add_development_dependency 'bundler', '~> 1.0'
23
25
  gem.add_development_dependency 'rake', '~> 10.1'
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe ListProtocolSubscriptions do
4
+ let(:options) { {dossier_id: '1'} }
5
+ let(:api_path) { "/dossiers/#{options[:dossier_id]}/protocol_subscriptions" }
6
+ let(:response) { {"protocol_subscriptions" => [{"id" => 1}]} }
7
+ let(:session) { Fabricate :basic_auth_session }
8
+ before { allow(BasicAuthSession).to receive(:new).and_return session }
9
+
10
+ it 'returns an array of response objects' do
11
+ allow(session).to receive(:get).with(api_path).and_return response
12
+ result = ListProtocolSubscriptions.run(options).result
13
+
14
+ expect(result).to be_a(Array)
15
+ expect(result.first).to be_a(ProtocolSubscription)
16
+ expect(result.first.id).to eq(1)
17
+ end
18
+ end
@@ -3,16 +3,16 @@ require 'spec_helper'
3
3
  describe ListResponses do
4
4
  let(:options) { {dossier_id: '1'} }
5
5
  let(:api_path) { "/dossiers/#{options[:dossier_id]}/responses" }
6
- let(:response) { '{"responses":[{"name":"response_1"},{"name":"response_2"}]}' }
7
- let(:session) { Fabricate :basic_auth_session }
6
+ let(:response) { {"responses" => [{"name" => "response_1"}, {"name" => "response_2"}]} }
7
+ let(:session) { Fabricate :basic_auth_session }
8
8
  before { allow(BasicAuthSession).to receive(:new).and_return session }
9
9
 
10
10
  it 'returns an array of response objects' do
11
- allow(session).to receive(:get).with(api_path).and_return double(body: response)
11
+ allow(session).to receive(:get).with(api_path).and_return response
12
12
  result = ListResponses.run(options).result
13
13
 
14
14
  expect(result).to be_a(Array)
15
15
  expect(result.first).to be_a(Response)
16
16
  expect(result.first.name).to eq('response_1')
17
17
  end
18
- end
18
+ end
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ describe ProtocolSubscription do
4
+ let(:response_body) do
5
+ {'id' => 1,
6
+ 'daily_start_time' => 300,
7
+ 'next_run_time' => nil,
8
+ 'start_at' => "2014-04-10T14:00:28+02:00",
9
+ 'stop_at' => nil,
10
+ 'state' => "a",
11
+ 'protocol_key' => "pkey",
12
+ 'protocol_name' => 'pname' }
13
+ end
14
+
15
+ it 'assigns fields to attr_accessors' do
16
+ protocol_subscription = ProtocolSubscription.new response_body
17
+ expect(protocol_subscription.id).to eq 1
18
+ expect(protocol_subscription.daily_start_time).to eq 300
19
+ expect(protocol_subscription.next_run_time).to eq nil
20
+ expect(protocol_subscription.start_at).to eq DateTime.parse("2014-04-10T14:00:28+02:00")
21
+ expect(protocol_subscription.stop_at).to eq nil
22
+ expect(protocol_subscription.state).to eq "a"
23
+ expect(protocol_subscription.protocol_key).to eq 'pkey'
24
+ expect(protocol_subscription.protocol_name).to eq 'pname'
25
+ end
26
+ end
@@ -14,11 +14,11 @@ describe Response do
14
14
  it 'assigns fields to attr_accessors' do
15
15
  response = Response.new response_body
16
16
  expect(response.name).to eq 'RS-12'
17
- expect(response.open_from).to eq '2014-02-19T14:15:49+01:00'
18
- expect(response.open_till).to eq '2014-02-20T14:15:49+01:00'
17
+ expect(response.open_from).to eq DateTime.parse('2014-02-19T14:15:49+01:00')
18
+ expect(response.open_till).to eq DateTime.parse('2014-02-20T14:15:49+01:00')
19
19
  expect(response.completed_at).to eq nil
20
20
  expect(response.completer_type).to eq 'patient'
21
21
  expect(response.status).to eq 'open'
22
22
  expect(response.completing_url).to eq 'http://roqua.dev/client/session/new?token=26aee9a4'
23
23
  end
24
- end
24
+ end
@@ -11,11 +11,11 @@ describe BasicAuthSession do
11
11
  expect(session.rom_host).to eq('some_rom_host')
12
12
  end
13
13
 
14
- it 'defaults the rom_host to the ROM_HOST env variable' do
15
- orginal_env_rom_host = ENV['ROM_HOST']
16
- ENV['ROM_HOST'] = 'some_env_rom_host'
14
+ it 'defaults the rom_host to the ROM_SITE env variable' do
15
+ orginal_env_rom_host = ENV['ROM_SITE']
16
+ ENV['ROM_SITE'] = 'some_env_rom_host'
17
17
  session = Roqua::RomApi.basic_auth_session
18
- ENV['ROM_HOST'] = orginal_env_rom_host
18
+ ENV['ROM_SITE'] = orginal_env_rom_host
19
19
  expect(session.rom_host).to eq('some_env_rom_host')
20
20
  end
21
21
 
@@ -24,11 +24,11 @@ describe BasicAuthSession do
24
24
  expect(session.username).to eq('some_username')
25
25
  end
26
26
 
27
- it 'defaults the username to the ROM_KEY env variable' do
28
- orginal_env_rom_key = ENV['ROM_KEY']
29
- ENV['ROM_KEY'] = 'some_env_rom_key'
27
+ it 'defaults the username to the ROM_BASICAUTH_ID env variable' do
28
+ orginal_env_rom_key = ENV['ROM_BASICAUTH_ID']
29
+ ENV['ROM_BASICAUTH_ID'] = 'some_env_rom_key'
30
30
  session = Roqua::RomApi.basic_auth_session
31
- ENV['ROM_KEY'] = orginal_env_rom_key
31
+ ENV['ROM_BASICAUTH_ID'] = orginal_env_rom_key
32
32
  expect(session.username).to eq('some_env_rom_key')
33
33
  end
34
34
 
@@ -37,11 +37,11 @@ describe BasicAuthSession do
37
37
  expect(session.password).to eq('some_password')
38
38
  end
39
39
 
40
- it 'defaults the password to the ROM_SECRET env variable' do
41
- orginal_env_rom_secret = ENV['ROM_SECRET']
42
- ENV['ROM_SECRET'] = 'some_env_rom_secret'
40
+ it 'defaults the password to the ROM_BASICAUTH_SECRET env variable' do
41
+ orginal_env_rom_secret = ENV['ROM_BASICAUTH_SECRET']
42
+ ENV['ROM_BASICAUTH_SECRET'] = 'some_env_rom_secret'
43
43
  session = Roqua::RomApi.basic_auth_session
44
- ENV['ROM_SECRET'] = orginal_env_rom_secret
44
+ ENV['ROM_BASICAUTH_SECRET'] = orginal_env_rom_secret
45
45
  expect(session.password).to eq('some_env_rom_secret')
46
46
  end
47
47
  end
@@ -61,6 +61,20 @@ describe BasicAuthSession do
61
61
  expect { session.get '/some_path' }.to raise_error(RuntimeError, 'some_response')
62
62
  end
63
63
 
64
+ it 'throws a NoSession error if the basic auth is incorrect' do
65
+ allow(response).to receive(:code).and_return(401)
66
+ allow(HTTParty).to receive(:get).and_return(response)
67
+ allow(response).to receive(:headers).and_return('WWW-Authenticate' => 'Basic realm="Application"')
68
+ expect { session.get '/some_path' }.to raise_error(Roqua::RomApi::NoSession)
69
+ end
70
+
71
+ it 'throws a Unauthorized error on 401 without www-authenticate header' do
72
+ allow(response).to receive(:code).and_return(401)
73
+ allow(HTTParty).to receive(:get).and_return(response)
74
+ allow(response).to receive(:headers).and_return('foo' => 'bar')
75
+ expect { session.get '/some_path' }.to raise_error(Roqua::RomApi::Unauthorized)
76
+ end
77
+
64
78
  it 'returns the response' do
65
79
  allow(HTTParty).to receive(:get).and_return(response)
66
80
  expect(session.get '/some_path').to eq(response)
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe StartFillOutSession do
4
+ let(:options) { {dossier_id: 'some_dossier_id', questionnaire_key: 'some_key', return_to: '/some/return/url'} }
5
+ let(:session) { Sessions::BasicAuthSession.new }
6
+ let(:parsed_response) { double('parsed_response') }
7
+ let(:response) { double('response', parsed_response: parsed_response) }
8
+ before do
9
+ allow(Sessions::BasicAuthSession).to receive(:new).and_return session
10
+ allow(session).to receive(:post).and_return response
11
+ end
12
+
13
+ it 'does a post to the rom fill_out_sessions api' do
14
+ expect(session).to receive(:post).with("/dossiers/#{options[:dossier_id]}/fill_out_sessions",
15
+ questionnaire_key: options[:questionnaire_key],
16
+ return_to: options[:return_to])
17
+ StartFillOutSession.run!(options)
18
+ end
19
+
20
+ it 'returns the parsed response' do
21
+ expect(StartFillOutSession.run!(options)).to eq(parsed_response)
22
+ end
23
+ end
@@ -11,16 +11,16 @@ describe StartProtocolSubscription do
11
11
  end
12
12
 
13
13
  it 'does a post to the rom protocol_subscription api' do
14
- expect(session).to receive(:post).with('/protocol_subscriptions', dossier_id: options[:dossier_id],
15
- protocol_key: options[:protocol_key])
14
+ expect(session).to receive(:post).with("/dossiers/#{options[:dossier_id]}/protocol_subscriptions",
15
+ protocol_key: options[:protocol_key])
16
16
  StartProtocolSubscription.run!(options)
17
17
  end
18
18
 
19
19
  it 'passes in the start_at option when provided' do
20
20
  start_at = Time.now
21
- expect(session).to receive(:post).with('/protocol_subscriptions', dossier_id: options[:dossier_id],
22
- protocol_key: options[:protocol_key],
23
- start_at: start_at.to_i)
21
+ expect(session).to receive(:post).with("/dossiers/#{options[:dossier_id]}/protocol_subscriptions",
22
+ protocol_key: options[:protocol_key],
23
+ start_at: start_at.to_i)
24
24
  StartProtocolSubscription.run!(options.merge start_at: start_at)
25
25
  end
26
26
 
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe StopProtocolSubscription do
4
+ let(:options) { {dossier_id: 'some_dossier_id', protocol_subscription_id: 'some_protsub_id'} }
5
+ let(:parsed_response) { double('parsed_response') }
6
+ let(:response) { double('response', parsed_response: parsed_response) }
7
+
8
+ let(:session) { Fabricate :basic_auth_session }
9
+ before do
10
+ allow(Sessions::BasicAuthSession).to receive(:new).and_return session
11
+ allow(session).to receive(:delete).and_return response
12
+ end
13
+
14
+ it 'does a post to the rom protocol_subscription api' do
15
+ url = "/dossiers/#{options[:dossier_id]}/protocol_subscriptions/#{options[:protocol_subscription_id]}"
16
+ expect(session).to receive(:delete).with(url)
17
+ StopProtocolSubscription.run!(options)
18
+ end
19
+ end
@@ -4,4 +4,4 @@ describe Roqua::RomApi do
4
4
  it "should have a VERSION constant" do
5
5
  expect(subject.const_get('VERSION')).to_not be_empty
6
6
  end
7
- end
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-rom-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Esposito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: virtus
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -124,19 +138,27 @@ files:
124
138
  - Rakefile
125
139
  - lib/roqua-rom-api.rb
126
140
  - lib/roqua/rom_api.rb
141
+ - lib/roqua/rom_api/list_protocol_subscriptions.rb
127
142
  - lib/roqua/rom_api/list_responses.rb
128
143
  - lib/roqua/rom_api/models.rb
144
+ - lib/roqua/rom_api/models/protocol_subscription.rb
129
145
  - lib/roqua/rom_api/models/response.rb
130
146
  - lib/roqua/rom_api/sessions.rb
131
147
  - lib/roqua/rom_api/sessions/basic_auth_session.rb
148
+ - lib/roqua/rom_api/start_fill_out_session.rb
132
149
  - lib/roqua/rom_api/start_protocol_subscription.rb
150
+ - lib/roqua/rom_api/stop_protocol_subscription.rb
133
151
  - lib/roqua/rom_api/version.rb
134
152
  - roqua_rom_api.gemspec
135
153
  - spec/fabricators/basic_auth_session_fabricator.rb
154
+ - spec/lib/roqua/rom_api/list_protocol_subscriptions_spec.rb
136
155
  - spec/lib/roqua/rom_api/list_responses_spec.rb
156
+ - spec/lib/roqua/rom_api/models/protocol_subscription_spec.rb
137
157
  - spec/lib/roqua/rom_api/models/response_spec.rb
138
158
  - spec/lib/roqua/rom_api/sessions/basic_auth_session_spec.rb
159
+ - spec/lib/roqua/rom_api/start_fill_out_session_spec.rb
139
160
  - spec/lib/roqua/rom_api/start_protocol_subscription_spec.rb
161
+ - spec/lib/roqua/rom_api/stop_protocol_subscription_spec.rb
140
162
  - spec/lib/roqua_rom_api_spec.rb
141
163
  - spec/spec_helper.rb
142
164
  homepage: https://github.com/roqua/roqua/blob/master/rom_api/README.md
@@ -165,10 +187,14 @@ specification_version: 4
165
187
  summary: API wrapper gem around RoQua's ROM API
166
188
  test_files:
167
189
  - spec/fabricators/basic_auth_session_fabricator.rb
190
+ - spec/lib/roqua/rom_api/list_protocol_subscriptions_spec.rb
168
191
  - spec/lib/roqua/rom_api/list_responses_spec.rb
192
+ - spec/lib/roqua/rom_api/models/protocol_subscription_spec.rb
169
193
  - spec/lib/roqua/rom_api/models/response_spec.rb
170
194
  - spec/lib/roqua/rom_api/sessions/basic_auth_session_spec.rb
195
+ - spec/lib/roqua/rom_api/start_fill_out_session_spec.rb
171
196
  - spec/lib/roqua/rom_api/start_protocol_subscription_spec.rb
197
+ - spec/lib/roqua/rom_api/stop_protocol_subscription_spec.rb
172
198
  - spec/lib/roqua_rom_api_spec.rb
173
199
  - spec/spec_helper.rb
174
200
  has_rdoc: