roqua-core-api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/ChangeLog.md +4 -0
- data/lib/roqua/core_api/models/organization.rb +2 -2
- data/lib/roqua/core_api/sessions/dossier_session.rb +1 -1
- data/lib/roqua/core_api/sessions/organization_session.rb +1 -1
- data/lib/roqua/core_api/version.rb +1 -1
- data/spec/fabricators/app_session_fabricator.rb +1 -1
- data/spec/fabricators/dossier_fabricator.rb +1 -1
- data/spec/fabricators/organization_fabricator.rb +2 -2
- data/spec/fabricators/organization_session_fabricator.rb +1 -1
- data/spec/fixtures/dossiers/can_be_created.yml +5 -5
- data/spec/fixtures/dossiers/can_be_started.yml +1 -1
- data/spec/fixtures/organizations/can_be_created.yml +2 -2
- data/spec/integration/organizations_spec.rb +1 -2
- data/spec/lib/roqua/core_api/sessions/app_session_spec.rb +1 -1
- data/spec/lib/roqua/core_api/sessions/organization_session_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGY0OGZhYjhjOTE2ZDE2N2I0NTE5YmExNTBmMGYyOTBkNjVmM2E2Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDA3NTBhMGQ5NzIzYTU5ODlkZDNlYjVmMTdiZjI5NzM3MjZmZGI2NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjBiYTRhZjA0YWFlMzAzOTdhZmJhZmI2YTk1N2FmNzNhZDc1ZTA3MzM4ZGMw
|
10
|
+
ZTZiNzg5NzllOTk1NjJiOTgzNDRjMTc0M2FlNTgxMDhlMDc2NGYxZmE5NDk3
|
11
|
+
NDY2MzY2ZjkyODQ2ZDdhMDQ1YmQ3ZmRjZGEzYjIwYjE2M2ExOGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWNiODRlZDFhOGQxNjdmNDU1MGMxZmUzNjM4ZDNlODNlNzBmYzk3YTliNzc1
|
14
|
+
YmNiNDRiOTRkZjRiMTAyODZkMzA2NzE3MjQyMDA3NzRkMDBhMTJjNGIzMzJh
|
15
|
+
MGU0ZjczM2RlNWE1NjQwMzFjNTRlZjc3NzU5YTg0YjRhNmQwMmQ=
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
Fabricator(:organization, class_name: Roqua::CoreApi::Models::Organization) do
|
2
|
-
initialize_with { Roqua::CoreApi::Models::Organization.new '
|
3
|
-
end
|
2
|
+
initialize_with { Roqua::CoreApi::Models::Organization.new 'id' => 'some_id', 'name' => 'some_name' }
|
3
|
+
end
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://core.dev/apps/development/organizations.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: organization[
|
8
|
+
string: organization[name]=some_name
|
9
9
|
headers: {}
|
10
10
|
response:
|
11
11
|
status:
|
@@ -36,12 +36,12 @@ http_interactions:
|
|
36
36
|
- close
|
37
37
|
body:
|
38
38
|
encoding: US-ASCII
|
39
|
-
string: ! '{"id":2,"
|
40
|
-
http_version:
|
39
|
+
string: ! '{"id":2,"name":"some_name","created_at":"2014-01-29T21:22:11.081Z","updated_at":"2014-01-29T21:22:11.081Z","app_id":1}'
|
40
|
+
http_version:
|
41
41
|
recorded_at: Wed, 29 Jan 2014 21:22:11 GMT
|
42
42
|
- request:
|
43
43
|
method: post
|
44
|
-
uri: http://core.dev/apps/development/organizations/
|
44
|
+
uri: http://core.dev/apps/development/organizations/some_id/dossiers.json
|
45
45
|
body:
|
46
46
|
encoding: US-ASCII
|
47
47
|
string: dossier[id]=some_id
|
@@ -76,6 +76,6 @@ http_interactions:
|
|
76
76
|
body:
|
77
77
|
encoding: US-ASCII
|
78
78
|
string: ! '{"id":1,"identifier":"fca8af4de679dc32ffc9412862397291","organization_id":2}'
|
79
|
-
http_version:
|
79
|
+
http_version:
|
80
80
|
recorded_at: Wed, 29 Jan 2014 21:22:11 GMT
|
81
81
|
recorded_with: VCR 2.8.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: put
|
5
|
-
uri: http://core.dev/apps/development/organizations/
|
5
|
+
uri: http://core.dev/apps/development/organizations/some_id/dossiers/1/start.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: attributes[protocols][]=some_protocol
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
5
5
|
uri: http://core.dev/apps/development/organizations.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: organization[
|
8
|
+
string: organization[name]=Foo%20Bar
|
9
9
|
headers: {}
|
10
10
|
response:
|
11
11
|
status:
|
@@ -44,7 +44,7 @@ http_interactions:
|
|
44
44
|
- application/json; charset=utf-8
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
|
-
string: "{\"id\":5,\"
|
47
|
+
string: "{\"id\":5,\"name\":\"Foo Bar\",\"created_at\":\"2014-01-28T14:04:59.261Z\",\"updated_at\":\"2014-01-28T14:04:59.261Z\",\"app_id\":1}"
|
48
48
|
http_version:
|
49
49
|
recorded_at: Tue, 28 Jan 2014 14:04:59 GMT
|
50
50
|
recorded_with: VCR 2.8.0
|
@@ -4,8 +4,7 @@ describe 'organizations' do
|
|
4
4
|
let(:session) { Sessions::AppSession.new('development', 'http://core.dev') }
|
5
5
|
|
6
6
|
it 'can be created', :vcr do
|
7
|
-
organization = session.create_organization(
|
8
|
-
expect(organization.key).to eq("foobar")
|
7
|
+
organization = session.create_organization(name: 'Foo Bar')
|
9
8
|
expect(organization.name).to eq("Foo Bar")
|
10
9
|
end
|
11
10
|
end
|