redbooth-ruby 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 +4 -4
- data/spec/cassettes/RedboothRuby_Conversation/_create/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml +84 -0
- data/spec/cassettes/RedboothRuby_Conversation/_index/.yml +99 -0
- data/spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml +99 -0
- data/spec/cassettes/RedboothRuby_Conversation/_initialize/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_show/.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +45 -0
- data/spec/cassettes/RedboothRuby_Conversation/_update/.yml +47 -0
- data/spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +47 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/integration/.yml +0 -0
- data/spec/cassettes/RedboothRuby_Membership/_create/integration/.yml +83 -0
- data/spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml +83 -0
- data/spec/cassettes/RedboothRuby_Membership/_index/.yml +58 -0
- data/spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +58 -0
- data/spec/cassettes/RedboothRuby_Membership/_initialize/.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_show/.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +44 -0
- data/spec/cassettes/RedboothRuby_Membership/_update/.yml +46 -0
- data/spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +46 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/integration/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_all/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_count/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_is_the_last_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_is_the_first_page/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/.yml +0 -0
- data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/where_endpoint_is_not_paginated/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_name.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/name/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/project_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/task_list_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/class/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/assigned_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/description/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/due_on/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/initializes_all_attributes_correctly.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/name/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/project_id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_email.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_first_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_id.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_last_name.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/id/.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
- data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/name/.yml +0 -0
- data/spec/{redbooth → redbooth-ruby}/base_spec.rb +2 -2
- data/spec/{redbooth → redbooth-ruby}/client_spec.rb +11 -11
- data/spec/redbooth-ruby/conversation_spec.rb +83 -0
- data/spec/{redbooth → redbooth-ruby}/me_spec.rb +4 -4
- data/spec/redbooth-ruby/membership_spec.rb +85 -0
- data/spec/{redbooth → redbooth-ruby}/organization_spec.rb +8 -8
- data/spec/{redbooth → redbooth-ruby}/person_spec.rb +7 -7
- data/spec/{redbooth → redbooth-ruby}/project_spec.rb +8 -8
- data/spec/{redbooth → redbooth-ruby}/request/base_spec.rb +9 -9
- data/spec/{redbooth → redbooth-ruby}/request/collection_spec.rb +7 -7
- data/spec/{redbooth → redbooth-ruby}/request/connection_spec.rb +10 -10
- data/spec/{redbooth → redbooth-ruby}/request/info_spec.rb +4 -4
- data/spec/{redbooth → redbooth-ruby}/request/response_spec.rb +3 -3
- data/spec/{redbooth → redbooth-ruby}/request/validator_spec.rb +9 -9
- data/spec/{redbooth → redbooth-ruby}/task_spec.rb +12 -12
- data/spec/{redbooth → redbooth-ruby}/user_spec.rb +4 -4
- data/spec/redbooth_spec.rb +12 -12
- data/spec/shared/authentication_context.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- metadata +264 -222
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby::Request::Connection do
|
4
4
|
let(:consumer_key) { '_your_consumen_key_' }
|
5
5
|
let(:consumer_secret) { '_your_consumen_secret_' }
|
6
6
|
let(:access_token) do
|
@@ -9,22 +9,22 @@ describe Redbooth::Request::Connection do
|
|
9
9
|
secret: '_your_secret_token_'
|
10
10
|
}
|
11
11
|
end
|
12
|
-
let(:connection) {
|
12
|
+
let(:connection) { RedboothRuby::Request::Connection.new(info) }
|
13
13
|
let(:info) do
|
14
|
-
|
14
|
+
RedboothRuby::Request::Info.new(:get,
|
15
15
|
nil,
|
16
16
|
'user',
|
17
17
|
{},
|
18
18
|
{ session: session }
|
19
19
|
)
|
20
20
|
end
|
21
|
-
let(:client) {
|
22
|
-
let(:session) {
|
23
|
-
let(:redbooth_protocol) {
|
24
|
-
let(:redbooth_url) { "#{redbooth_protocol}://#{
|
21
|
+
let(:client) { RedboothRuby::Client.new(session) }
|
22
|
+
let(:session) { RedboothRuby::Session.new(access_token) }
|
23
|
+
let(:redbooth_protocol) { RedboothRuby.configuration[:use_ssl] ? 'https' : 'http' }
|
24
|
+
let(:redbooth_url) { "#{redbooth_protocol}://#{RedboothRuby.configuration[:api_base]}/#{RedboothRuby.configuration[:api_base_path]}/#{RedboothRuby.configuration[:api_version]}" }
|
25
25
|
|
26
26
|
before :each do
|
27
|
-
|
27
|
+
RedboothRuby.config do |configuration|
|
28
28
|
configuration[:consumer_key] = consumer_key
|
29
29
|
configuration[:consumer_secret] = consumer_secret
|
30
30
|
end
|
@@ -55,10 +55,10 @@ describe Redbooth::Request::Connection do
|
|
55
55
|
http_method: :post,
|
56
56
|
url: '/some/path',
|
57
57
|
data: params,
|
58
|
-
subdomain:
|
58
|
+
subdomain: RedboothRuby::DOMAIN_BASE,
|
59
59
|
session: session
|
60
60
|
)
|
61
|
-
connection =
|
61
|
+
connection = RedboothRuby::Request::Connection.new(info)
|
62
62
|
connection.set_request_data
|
63
63
|
|
64
64
|
expect(connection.request_data).to eq(
|
@@ -1,9 +1,9 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby::Request::Info do
|
4
4
|
describe "#url" do
|
5
5
|
it "constructs the url" do
|
6
|
-
info =
|
6
|
+
info = RedboothRuby::Request::Info.new(:get, nil, "random", {id: 1} )
|
7
7
|
|
8
8
|
expect(info.url).to match /random/
|
9
9
|
end
|
@@ -11,14 +11,14 @@ describe Redbooth::Request::Info do
|
|
11
11
|
|
12
12
|
describe "#path_with_params" do
|
13
13
|
it "does nothing when no params" do
|
14
|
-
info =
|
14
|
+
info = RedboothRuby::Request::Info.new(:get, nil, "random", nil)
|
15
15
|
path = "/path/to/someplace"
|
16
16
|
|
17
17
|
expect(info.path_with_params(path, {})).to eq path
|
18
18
|
end
|
19
19
|
|
20
20
|
it "constructs the path with params" do
|
21
|
-
info =
|
21
|
+
info = RedboothRuby::Request::Info.new(:get, nil, "random", nil)
|
22
22
|
path = "/path/to/someplace"
|
23
23
|
|
24
24
|
expect(info.path_with_params(path, {random: "stuff"})).to eq "#{path}?random=stuff"
|
@@ -1,17 +1,17 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby::Request::Response do
|
4
4
|
let(:headers) { {} }
|
5
5
|
let(:status) { 200 }
|
6
6
|
let(:body) { '{"response":"ok"}' }
|
7
|
-
let(:response) {
|
7
|
+
let(:response) { RedboothRuby::Request::Response.new(body: body,
|
8
8
|
status: status,
|
9
9
|
headers: headers) }
|
10
10
|
|
11
11
|
describe "#initialize" do
|
12
12
|
subject { response }
|
13
13
|
|
14
|
-
it { should be_a
|
14
|
+
it { should be_a RedboothRuby::Request::Response }
|
15
15
|
it { expect(subject.data).to eq("response" => "ok") }
|
16
16
|
it { expect(subject.body).to eq(body) }
|
17
17
|
it { expect(subject.headers).to eq(headers) }
|
@@ -1,45 +1,45 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
4
|
-
let(:info) {
|
5
|
-
let(:validator) {
|
3
|
+
describe RedboothRuby::Request::Validator do
|
4
|
+
let(:info) { RedboothRuby::Request::Info.new(:get, nil, "random", OpenStruct.new(id: 1)) }
|
5
|
+
let(:validator) { RedboothRuby::Request::Validator.new info }
|
6
6
|
let(:headers) { {} }
|
7
7
|
let(:response) { OpenStruct.new(body: '{"response":"ok"}', status: 200, headers: headers) }
|
8
8
|
|
9
9
|
describe "#validated_response_for" do
|
10
10
|
subject { validator.validated_response_for(response) }
|
11
11
|
|
12
|
-
it { should be_a
|
12
|
+
it { should be_a RedboothRuby::Request::Response }
|
13
13
|
it { expect(subject.data).to eq("response" => "ok") }
|
14
14
|
|
15
15
|
context 'where 401 status code returned' do
|
16
16
|
let(:response) { OpenStruct.new(body: '{"error":{"message":"Unauthorized"}}', status: 401, headers: headers) }
|
17
17
|
|
18
|
-
it { expect{subject}.to raise_error(
|
18
|
+
it { expect{subject}.to raise_error(RedboothRuby::AuthenticationError) }
|
19
19
|
|
20
20
|
context 'where token was expired' do
|
21
21
|
before { headers['WWW-Authenticate'] = %{Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token was expired"} }
|
22
22
|
|
23
|
-
it { expect{subject}.to raise_error(
|
23
|
+
it { expect{subject}.to raise_error(RedboothRuby::OauhtTokenExpired) }
|
24
24
|
end
|
25
25
|
|
26
26
|
context 'where token was revoked' do
|
27
27
|
before { headers['WWW-Authenticate'] = %{Bearer realm="Doorkeeper", error="invalid_token", error_description="The access token was revoked"} }
|
28
28
|
|
29
|
-
it { expect{subject}.to raise_error(
|
29
|
+
it { expect{subject}.to raise_error(RedboothRuby::OauhtTokenRevoked) }
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
context 'where 500 status code returned' do
|
34
34
|
let(:response) { OpenStruct.new(body: '{"error":{"message":"Something went wrong"}}', status: 500, headers: headers) }
|
35
35
|
|
36
|
-
it { expect{subject}.to raise_error(
|
36
|
+
it { expect{subject}.to raise_error(RedboothRuby::APIError) }
|
37
37
|
end
|
38
38
|
|
39
39
|
context 'where 404 status code returned' do
|
40
40
|
let(:response) { OpenStruct.new(body: '{"error":{"message":"There is no task with the given id in the system"}}', status: 404, headers: headers) }
|
41
41
|
|
42
|
-
it { expect{subject}.to raise_error(
|
42
|
+
it { expect{subject}.to raise_error(RedboothRuby::NotFound) }
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby::Task, vcr: 'tasks' do
|
4
4
|
include_context 'authentication'
|
5
5
|
|
6
6
|
let(:create_task_params) do
|
@@ -8,9 +8,9 @@ describe Redbooth::Task, vcr: 'tasks' do
|
|
8
8
|
name: 'new created task',
|
9
9
|
task_list_id: 3 }
|
10
10
|
end
|
11
|
-
let(:new_task) {
|
11
|
+
let(:new_task) { RedboothRuby::Task.create(create_task_params.merge(session: session)) }
|
12
12
|
let(:task) do
|
13
|
-
|
13
|
+
RedboothRuby::Task.show(session: session, id: 1)
|
14
14
|
end
|
15
15
|
|
16
16
|
describe "#initialize" do
|
@@ -26,7 +26,7 @@ describe Redbooth::Task, vcr: 'tasks' do
|
|
26
26
|
|
27
27
|
describe ".show" do
|
28
28
|
it "makes a new GET request using the correct API endpoint to receive a specific task" do
|
29
|
-
expect(
|
29
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, "tasks/1", {}, { session: session }).and_call_original
|
30
30
|
task
|
31
31
|
end
|
32
32
|
it 'returns a task with the correct name' do
|
@@ -44,10 +44,10 @@ describe Redbooth::Task, vcr: 'tasks' do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
describe ".update" do
|
47
|
-
subject {
|
47
|
+
subject { RedboothRuby::Task.update(session: session, id: 2, name: 'new test name') }
|
48
48
|
|
49
49
|
it "makes a new PUT request using the correct API endpoint to receive a specific task" do
|
50
|
-
expect(
|
50
|
+
expect(RedboothRuby).to receive(:request).with(:put, nil, "tasks/2", { name: 'new test name' }, { session: session }).and_call_original
|
51
51
|
subject
|
52
52
|
end
|
53
53
|
|
@@ -59,7 +59,7 @@ describe Redbooth::Task, vcr: 'tasks' do
|
|
59
59
|
subject { new_task }
|
60
60
|
|
61
61
|
it "makes a new POST request using the correct API endpoint to create a specific task" do
|
62
|
-
expect(
|
62
|
+
expect(RedboothRuby).to receive(:request).with(:post, nil, "tasks", create_task_params, { session: session }).and_call_original
|
63
63
|
subject
|
64
64
|
end
|
65
65
|
|
@@ -69,22 +69,22 @@ describe Redbooth::Task, vcr: 'tasks' do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
describe ".delete" do
|
72
|
-
subject {
|
72
|
+
subject { RedboothRuby::Task.delete(session: session, id: new_task.id) }
|
73
73
|
|
74
74
|
it "makes a new DELETE request using the correct API endpoint to delete a specific task" do
|
75
|
-
expect(
|
75
|
+
expect(RedboothRuby).to receive(:request).with(:delete, nil, "tasks/#{new_task.id}", {}, { session: session }).and_call_original
|
76
76
|
subject
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
80
|
describe ".index" do
|
81
|
-
subject {
|
81
|
+
subject { RedboothRuby::Task.index(session: session) }
|
82
82
|
|
83
83
|
it "makes a new PUT request using the correct API endpoint to receive a specific task" do
|
84
|
-
expect(
|
84
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, "tasks", {}, { session: session }).and_call_original
|
85
85
|
subject
|
86
86
|
end
|
87
87
|
|
88
|
-
it { expect(subject.class).to eql
|
88
|
+
it { expect(subject.class).to eql RedboothRuby::Request::Collection }
|
89
89
|
end
|
90
90
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby::User, vcr: 'users' do
|
4
4
|
include_context 'authentication'
|
5
5
|
|
6
6
|
let(:user) do
|
7
|
-
|
7
|
+
RedboothRuby::User.show(session: session, id: 1)
|
8
8
|
end
|
9
9
|
|
10
10
|
describe "#initialize" do
|
@@ -17,10 +17,10 @@ describe Redbooth::User, vcr: 'users' do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
describe ".show" do
|
20
|
-
subject {
|
20
|
+
subject { RedboothRuby::User.show(session: session, id: 1) }
|
21
21
|
|
22
22
|
it 'makes a new GET request using the correct API endpoint to receive a specific user' do
|
23
|
-
expect(
|
23
|
+
expect(RedboothRuby).to receive(:request).with(:get, nil, "users/1", {}, { session: session }).and_call_original
|
24
24
|
subject
|
25
25
|
end
|
26
26
|
|
data/spec/redbooth_spec.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe RedboothRuby do
|
4
4
|
describe '.request' do
|
5
5
|
context 'given no api key exists' do
|
6
6
|
it 'raises an authentication error' do
|
7
|
-
expect {
|
7
|
+
expect { RedboothRuby.request(:get, nil, 'clients', {}) }.to raise_error(RedboothRuby::AuthenticationError)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -17,23 +17,23 @@ describe Redbooth do
|
|
17
17
|
secret: '_your_secret_token_'
|
18
18
|
}
|
19
19
|
end
|
20
|
-
let(:client) {
|
21
|
-
let(:session) {
|
22
|
-
let(:redbooth_protocol) {
|
23
|
-
let(:redbooth_url) { "#{redbooth_protocol}://#{
|
20
|
+
let(:client) { RedboothRuby::Client.new(session) }
|
21
|
+
let(:session) { RedboothRuby::Session.new(access_token) }
|
22
|
+
let(:redbooth_protocol) { RedboothRuby.configuration[:use_ssl] ? 'https' : 'http' }
|
23
|
+
let(:redbooth_url) { "#{redbooth_protocol}://#{RedboothRuby.configuration[:api_base]}/#{RedboothRuby.configuration[:api_base_path]}/#{RedboothRuby.configuration[:api_version]}" }
|
24
24
|
|
25
25
|
before(:each) do
|
26
|
-
|
26
|
+
RedboothRuby.config do |configuration|
|
27
27
|
configuration[:consumer_key] = consumer_key
|
28
28
|
configuration[:consumer_secret] = consumer_secret
|
29
29
|
end
|
30
30
|
WebMock.stub_request(:any,
|
31
|
-
/#{
|
31
|
+
/#{RedboothRuby.configuration[:api_base]}/
|
32
32
|
).to_return(body: '{}')
|
33
33
|
end
|
34
34
|
|
35
35
|
it 'attempts to get a url with one param' do
|
36
|
-
|
36
|
+
RedboothRuby.request(:get, nil, 'user',
|
37
37
|
{ param_name: 'param_value' },
|
38
38
|
{ session: session }
|
39
39
|
)
|
@@ -43,7 +43,7 @@ describe Redbooth do
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it 'attempts to get a url with more than one param' do
|
46
|
-
|
46
|
+
RedboothRuby.request(:get,
|
47
47
|
nil,
|
48
48
|
'user',
|
49
49
|
{ client: 'client_id', order: 'created_at_desc' },
|
@@ -56,12 +56,12 @@ describe Redbooth do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
it "doesn't add a question mark if no params" do
|
59
|
-
|
59
|
+
RedboothRuby.request(:post, nil, "user", {}, { session: session })
|
60
60
|
expect(WebMock).to have_requested(:post, "#{redbooth_url}/user")
|
61
61
|
end
|
62
62
|
|
63
63
|
it "uses the param id to construct the url" do
|
64
|
-
|
64
|
+
RedboothRuby.request(:post, nil, "user", {id: 'new_id'}, { session: session })
|
65
65
|
expect(WebMock).to have_requested(:post, "#{redbooth_url}/user/new_id")
|
66
66
|
end
|
67
67
|
end
|
@@ -8,11 +8,11 @@ shared_context 'authentication' do
|
|
8
8
|
refresh_token: use_development? ? '_frank_refresh_token_' : ENV['REFRESH_TOKEN']
|
9
9
|
}
|
10
10
|
end
|
11
|
-
let(:client) {
|
12
|
-
let(:session) {
|
11
|
+
let(:client) { RedboothRuby::Client.new(session) }
|
12
|
+
let(:session) { RedboothRuby::Session.new(access_token) }
|
13
13
|
|
14
14
|
before :each do
|
15
|
-
|
15
|
+
RedboothRuby.config do |configuration|
|
16
16
|
if use_development?
|
17
17
|
configuration[:api_base] = 'localhost:3000'
|
18
18
|
configuration[:use_ssl] = false
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
require "codeclimate-test-reporter"
|
2
|
+
CodeClimate::TestReporter.start
|
3
|
+
|
1
4
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
5
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
-
require 'redbooth'
|
6
|
+
require 'redbooth-ruby'
|
4
7
|
require 'rspec'
|
5
8
|
require 'webmock/rspec'
|
6
9
|
require 'pry'
|
@@ -11,6 +14,7 @@ Dir[File.join(File.dirname(__FILE__), 'shared/**/*.rb')].each {|f| require f}
|
|
11
14
|
|
12
15
|
# VCR cassette configuration
|
13
16
|
VCR.configure do |config|
|
17
|
+
config.ignore_hosts 'codeclimate.com'
|
14
18
|
config.cassette_library_dir = 'spec/cassettes'
|
15
19
|
config.hook_into :webmock
|
16
20
|
config.default_cassette_options = { record: :new_episodes }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redbooth-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andres Bravo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -116,117 +116,138 @@ executables: []
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
-
- spec/cassettes/
|
120
|
-
- spec/cassettes/
|
121
|
-
- spec/cassettes/
|
122
|
-
- spec/cassettes/
|
123
|
-
- spec/cassettes/
|
124
|
-
- spec/cassettes/
|
125
|
-
- spec/cassettes/
|
126
|
-
- spec/cassettes/
|
127
|
-
- spec/cassettes/
|
128
|
-
- spec/cassettes/
|
129
|
-
- spec/cassettes/
|
130
|
-
- spec/cassettes/
|
131
|
-
- spec/cassettes/
|
132
|
-
- spec/cassettes/
|
133
|
-
- spec/cassettes/
|
134
|
-
- spec/cassettes/
|
135
|
-
- spec/cassettes/
|
136
|
-
- spec/cassettes/
|
137
|
-
- spec/cassettes/
|
138
|
-
- spec/cassettes/
|
139
|
-
- spec/cassettes/
|
140
|
-
- spec/cassettes/
|
141
|
-
- spec/cassettes/
|
142
|
-
- spec/cassettes/
|
143
|
-
- spec/cassettes/
|
144
|
-
- spec/cassettes/
|
145
|
-
- spec/cassettes/
|
146
|
-
- spec/cassettes/
|
147
|
-
- spec/cassettes/
|
148
|
-
- spec/cassettes/
|
149
|
-
- spec/cassettes/
|
150
|
-
- spec/cassettes/
|
151
|
-
- spec/cassettes/
|
152
|
-
- spec/cassettes/
|
153
|
-
- spec/cassettes/
|
154
|
-
- spec/cassettes/
|
155
|
-
- spec/cassettes/
|
156
|
-
- spec/cassettes/
|
157
|
-
- spec/cassettes/
|
158
|
-
- spec/cassettes/
|
159
|
-
- spec/cassettes/
|
160
|
-
- spec/cassettes/
|
161
|
-
- spec/cassettes/
|
162
|
-
- spec/cassettes/
|
163
|
-
- spec/cassettes/
|
164
|
-
- spec/cassettes/
|
165
|
-
- spec/cassettes/
|
166
|
-
- spec/cassettes/
|
167
|
-
- spec/cassettes/
|
168
|
-
- spec/cassettes/
|
169
|
-
- spec/cassettes/
|
170
|
-
- spec/cassettes/
|
171
|
-
- spec/cassettes/
|
172
|
-
- spec/cassettes/
|
173
|
-
- spec/cassettes/
|
174
|
-
- spec/cassettes/
|
175
|
-
- spec/cassettes/
|
176
|
-
- spec/cassettes/
|
177
|
-
- spec/cassettes/
|
178
|
-
- spec/cassettes/
|
179
|
-
- spec/cassettes/
|
180
|
-
- spec/cassettes/
|
181
|
-
- spec/cassettes/
|
182
|
-
- spec/cassettes/
|
183
|
-
- spec/cassettes/
|
184
|
-
- spec/cassettes/
|
185
|
-
- spec/cassettes/
|
186
|
-
- spec/cassettes/
|
187
|
-
- spec/cassettes/
|
188
|
-
- spec/cassettes/
|
189
|
-
- spec/cassettes/
|
190
|
-
- spec/cassettes/
|
191
|
-
- spec/cassettes/
|
192
|
-
- spec/cassettes/
|
193
|
-
- spec/cassettes/
|
194
|
-
- spec/cassettes/
|
195
|
-
- spec/cassettes/
|
196
|
-
- spec/cassettes/
|
197
|
-
- spec/cassettes/
|
198
|
-
- spec/cassettes/
|
199
|
-
- spec/cassettes/
|
200
|
-
- spec/cassettes/
|
201
|
-
- spec/cassettes/
|
202
|
-
- spec/cassettes/
|
203
|
-
- spec/cassettes/
|
204
|
-
- spec/cassettes/
|
205
|
-
- spec/cassettes/
|
206
|
-
- spec/cassettes/
|
207
|
-
- spec/cassettes/
|
208
|
-
- spec/cassettes/
|
209
|
-
- spec/cassettes/
|
210
|
-
- spec/cassettes/
|
211
|
-
- spec/cassettes/
|
212
|
-
- spec/cassettes/
|
213
|
-
- spec/cassettes/
|
214
|
-
- spec/cassettes/
|
119
|
+
- spec/cassettes/RedboothRuby_Conversation/_create/.yml
|
120
|
+
- spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml
|
121
|
+
- spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml
|
122
|
+
- spec/cassettes/RedboothRuby_Conversation/_index/.yml
|
123
|
+
- spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml
|
124
|
+
- spec/cassettes/RedboothRuby_Conversation/_initialize/.yml
|
125
|
+
- spec/cassettes/RedboothRuby_Conversation/_show/.yml
|
126
|
+
- spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
127
|
+
- spec/cassettes/RedboothRuby_Conversation/_update/.yml
|
128
|
+
- spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
129
|
+
- spec/cassettes/RedboothRuby_Me/_initialize/.yml
|
130
|
+
- spec/cassettes/RedboothRuby_Me/_show/.yml
|
131
|
+
- spec/cassettes/RedboothRuby_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
132
|
+
- spec/cassettes/RedboothRuby_Me/_update/.yml
|
133
|
+
- spec/cassettes/RedboothRuby_Me/_update/integration/.yml
|
134
|
+
- spec/cassettes/RedboothRuby_Membership/_create/integration/.yml
|
135
|
+
- spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml
|
136
|
+
- spec/cassettes/RedboothRuby_Membership/_index/.yml
|
137
|
+
- spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
138
|
+
- spec/cassettes/RedboothRuby_Membership/_initialize/.yml
|
139
|
+
- spec/cassettes/RedboothRuby_Membership/_show/.yml
|
140
|
+
- spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
141
|
+
- spec/cassettes/RedboothRuby_Membership/_update/.yml
|
142
|
+
- spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
143
|
+
- spec/cassettes/RedboothRuby_Organization/_create/.yml
|
144
|
+
- spec/cassettes/RedboothRuby_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
|
145
|
+
- spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
|
146
|
+
- spec/cassettes/RedboothRuby_Organization/_index/.yml
|
147
|
+
- spec/cassettes/RedboothRuby_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
148
|
+
- spec/cassettes/RedboothRuby_Organization/_initialize/.yml
|
149
|
+
- spec/cassettes/RedboothRuby_Organization/_show/.yml
|
150
|
+
- spec/cassettes/RedboothRuby_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
151
|
+
- spec/cassettes/RedboothRuby_Organization/_update/.yml
|
152
|
+
- spec/cassettes/RedboothRuby_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
153
|
+
- spec/cassettes/RedboothRuby_Person/_create/integration/.yml
|
154
|
+
- spec/cassettes/RedboothRuby_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
|
155
|
+
- spec/cassettes/RedboothRuby_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
|
156
|
+
- spec/cassettes/RedboothRuby_Person/_index/.yml
|
157
|
+
- spec/cassettes/RedboothRuby_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
158
|
+
- spec/cassettes/RedboothRuby_Person/_initialize/.yml
|
159
|
+
- spec/cassettes/RedboothRuby_Person/_show/.yml
|
160
|
+
- spec/cassettes/RedboothRuby_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
161
|
+
- spec/cassettes/RedboothRuby_Person/_update/.yml
|
162
|
+
- spec/cassettes/RedboothRuby_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
163
|
+
- spec/cassettes/RedboothRuby_Project/_create/.yml
|
164
|
+
- spec/cassettes/RedboothRuby_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
|
165
|
+
- spec/cassettes/RedboothRuby_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
|
166
|
+
- spec/cassettes/RedboothRuby_Project/_index/.yml
|
167
|
+
- spec/cassettes/RedboothRuby_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
168
|
+
- spec/cassettes/RedboothRuby_Project/_initialize/.yml
|
169
|
+
- spec/cassettes/RedboothRuby_Project/_show/.yml
|
170
|
+
- spec/cassettes/RedboothRuby_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
171
|
+
- spec/cassettes/RedboothRuby_Project/_update/.yml
|
172
|
+
- spec/cassettes/RedboothRuby_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
173
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_all/.yml
|
174
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_count/.yml
|
175
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_current_page/.yml
|
176
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
|
177
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_initialize/.yml
|
178
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/.yml
|
179
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
|
180
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/where_is_the_last_page/.yml
|
181
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_per_page/.yml
|
182
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
|
183
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/.yml
|
184
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
|
185
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
|
186
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
|
187
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
|
188
|
+
- spec/cassettes/RedboothRuby_Task/_create/.yml
|
189
|
+
- spec/cassettes/RedboothRuby_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
190
|
+
- spec/cassettes/RedboothRuby_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
191
|
+
- spec/cassettes/RedboothRuby_Task/_index/.yml
|
192
|
+
- spec/cassettes/RedboothRuby_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
193
|
+
- spec/cassettes/RedboothRuby_Task/_initialize/.yml
|
194
|
+
- spec/cassettes/RedboothRuby_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
195
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
|
196
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_id.yml
|
197
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_name.yml
|
198
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_project_id.yml
|
199
|
+
- spec/cassettes/RedboothRuby_Task/_update/.yml
|
200
|
+
- spec/cassettes/RedboothRuby_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
201
|
+
- spec/cassettes/RedboothRuby_User/_create/.yml
|
202
|
+
- spec/cassettes/RedboothRuby_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
203
|
+
- spec/cassettes/RedboothRuby_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
204
|
+
- spec/cassettes/RedboothRuby_User/_create/name/.yml
|
205
|
+
- spec/cassettes/RedboothRuby_User/_create/project_id/.yml
|
206
|
+
- spec/cassettes/RedboothRuby_User/_create/task_list_id/.yml
|
207
|
+
- spec/cassettes/RedboothRuby_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
208
|
+
- spec/cassettes/RedboothRuby_User/_index/.yml
|
209
|
+
- spec/cassettes/RedboothRuby_User/_index/class/.yml
|
210
|
+
- spec/cassettes/RedboothRuby_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
211
|
+
- spec/cassettes/RedboothRuby_User/_initialize/.yml
|
212
|
+
- spec/cassettes/RedboothRuby_User/_initialize/assigned_id/.yml
|
213
|
+
- spec/cassettes/RedboothRuby_User/_initialize/description/.yml
|
214
|
+
- spec/cassettes/RedboothRuby_User/_initialize/due_on/.yml
|
215
|
+
- spec/cassettes/RedboothRuby_User/_initialize/id/.yml
|
216
|
+
- spec/cassettes/RedboothRuby_User/_initialize/initializes_all_attributes_correctly.yml
|
217
|
+
- spec/cassettes/RedboothRuby_User/_initialize/name/.yml
|
218
|
+
- spec/cassettes/RedboothRuby_User/_initialize/project_id/.yml
|
219
|
+
- spec/cassettes/RedboothRuby_User/_show/.yml
|
220
|
+
- spec/cassettes/RedboothRuby_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
221
|
+
- spec/cassettes/RedboothRuby_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
222
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_assigned_id.yml
|
223
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_id.yml
|
224
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_name.yml
|
225
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_project_id.yml
|
226
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_email.yml
|
227
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_first_name.yml
|
228
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_id.yml
|
229
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_last_name.yml
|
230
|
+
- spec/cassettes/RedboothRuby_User/_update/.yml
|
231
|
+
- spec/cassettes/RedboothRuby_User/_update/id/.yml
|
232
|
+
- spec/cassettes/RedboothRuby_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
233
|
+
- spec/cassettes/RedboothRuby_User/_update/name/.yml
|
215
234
|
- spec/fixtures/hola.txt
|
216
|
-
- spec/redbooth/base_spec.rb
|
217
|
-
- spec/redbooth/client_spec.rb
|
218
|
-
- spec/redbooth/
|
219
|
-
- spec/redbooth/
|
220
|
-
- spec/redbooth/
|
221
|
-
- spec/redbooth/
|
222
|
-
- spec/redbooth/
|
223
|
-
- spec/redbooth/
|
224
|
-
- spec/redbooth/request/
|
225
|
-
- spec/redbooth/request/
|
226
|
-
- spec/redbooth/request/
|
227
|
-
- spec/redbooth/request/
|
228
|
-
- spec/redbooth/
|
229
|
-
- spec/redbooth/
|
235
|
+
- spec/redbooth-ruby/base_spec.rb
|
236
|
+
- spec/redbooth-ruby/client_spec.rb
|
237
|
+
- spec/redbooth-ruby/conversation_spec.rb
|
238
|
+
- spec/redbooth-ruby/me_spec.rb
|
239
|
+
- spec/redbooth-ruby/membership_spec.rb
|
240
|
+
- spec/redbooth-ruby/organization_spec.rb
|
241
|
+
- spec/redbooth-ruby/person_spec.rb
|
242
|
+
- spec/redbooth-ruby/project_spec.rb
|
243
|
+
- spec/redbooth-ruby/request/base_spec.rb
|
244
|
+
- spec/redbooth-ruby/request/collection_spec.rb
|
245
|
+
- spec/redbooth-ruby/request/connection_spec.rb
|
246
|
+
- spec/redbooth-ruby/request/info_spec.rb
|
247
|
+
- spec/redbooth-ruby/request/response_spec.rb
|
248
|
+
- spec/redbooth-ruby/request/validator_spec.rb
|
249
|
+
- spec/redbooth-ruby/task_spec.rb
|
250
|
+
- spec/redbooth-ruby/user_spec.rb
|
230
251
|
- spec/redbooth_spec.rb
|
231
252
|
- spec/shared/authentication_context.rb
|
232
253
|
- spec/spec_helper.rb
|
@@ -254,117 +275,138 @@ signing_key:
|
|
254
275
|
specification_version: 4
|
255
276
|
summary: API wrapper for Redbooth.
|
256
277
|
test_files:
|
257
|
-
- spec/cassettes/
|
258
|
-
- spec/cassettes/
|
259
|
-
- spec/cassettes/
|
260
|
-
- spec/cassettes/
|
261
|
-
- spec/cassettes/
|
262
|
-
- spec/cassettes/
|
263
|
-
- spec/cassettes/
|
264
|
-
- spec/cassettes/
|
265
|
-
- spec/cassettes/
|
266
|
-
- spec/cassettes/
|
267
|
-
- spec/cassettes/
|
268
|
-
- spec/cassettes/
|
269
|
-
- spec/cassettes/
|
270
|
-
- spec/cassettes/
|
271
|
-
- spec/cassettes/
|
272
|
-
- spec/cassettes/
|
273
|
-
- spec/cassettes/
|
274
|
-
- spec/cassettes/
|
275
|
-
- spec/cassettes/
|
276
|
-
- spec/cassettes/
|
277
|
-
- spec/cassettes/
|
278
|
-
- spec/cassettes/
|
279
|
-
- spec/cassettes/
|
280
|
-
- spec/cassettes/
|
281
|
-
- spec/cassettes/
|
282
|
-
- spec/cassettes/
|
283
|
-
- spec/cassettes/
|
284
|
-
- spec/cassettes/
|
285
|
-
- spec/cassettes/
|
286
|
-
- spec/cassettes/
|
287
|
-
- spec/cassettes/
|
288
|
-
- spec/cassettes/
|
289
|
-
- spec/cassettes/
|
290
|
-
- spec/cassettes/
|
291
|
-
- spec/cassettes/
|
292
|
-
- spec/cassettes/
|
293
|
-
- spec/cassettes/
|
294
|
-
- spec/cassettes/
|
295
|
-
- spec/cassettes/
|
296
|
-
- spec/cassettes/
|
297
|
-
- spec/cassettes/
|
298
|
-
- spec/cassettes/
|
299
|
-
- spec/cassettes/
|
300
|
-
- spec/cassettes/
|
301
|
-
- spec/cassettes/
|
302
|
-
- spec/cassettes/
|
303
|
-
- spec/cassettes/
|
304
|
-
- spec/cassettes/
|
305
|
-
- spec/cassettes/
|
306
|
-
- spec/cassettes/
|
307
|
-
- spec/cassettes/
|
308
|
-
- spec/cassettes/
|
309
|
-
- spec/cassettes/
|
310
|
-
- spec/cassettes/
|
311
|
-
- spec/cassettes/
|
312
|
-
- spec/cassettes/
|
313
|
-
- spec/cassettes/
|
314
|
-
- spec/cassettes/
|
315
|
-
- spec/cassettes/
|
316
|
-
- spec/cassettes/
|
317
|
-
- spec/cassettes/
|
318
|
-
- spec/cassettes/
|
319
|
-
- spec/cassettes/
|
320
|
-
- spec/cassettes/
|
321
|
-
- spec/cassettes/
|
322
|
-
- spec/cassettes/
|
323
|
-
- spec/cassettes/
|
324
|
-
- spec/cassettes/
|
325
|
-
- spec/cassettes/
|
326
|
-
- spec/cassettes/
|
327
|
-
- spec/cassettes/
|
328
|
-
- spec/cassettes/
|
329
|
-
- spec/cassettes/
|
330
|
-
- spec/cassettes/
|
331
|
-
- spec/cassettes/
|
332
|
-
- spec/cassettes/
|
333
|
-
- spec/cassettes/
|
334
|
-
- spec/cassettes/
|
335
|
-
- spec/cassettes/
|
336
|
-
- spec/cassettes/
|
337
|
-
- spec/cassettes/
|
338
|
-
- spec/cassettes/
|
339
|
-
- spec/cassettes/
|
340
|
-
- spec/cassettes/
|
341
|
-
- spec/cassettes/
|
342
|
-
- spec/cassettes/
|
343
|
-
- spec/cassettes/
|
344
|
-
- spec/cassettes/
|
345
|
-
- spec/cassettes/
|
346
|
-
- spec/cassettes/
|
347
|
-
- spec/cassettes/
|
348
|
-
- spec/cassettes/
|
349
|
-
- spec/cassettes/
|
350
|
-
- spec/cassettes/
|
351
|
-
- spec/cassettes/
|
352
|
-
- spec/cassettes/
|
278
|
+
- spec/cassettes/RedboothRuby_Conversation/_create/.yml
|
279
|
+
- spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml
|
280
|
+
- spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml
|
281
|
+
- spec/cassettes/RedboothRuby_Conversation/_index/.yml
|
282
|
+
- spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml
|
283
|
+
- spec/cassettes/RedboothRuby_Conversation/_initialize/.yml
|
284
|
+
- spec/cassettes/RedboothRuby_Conversation/_show/.yml
|
285
|
+
- spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
286
|
+
- spec/cassettes/RedboothRuby_Conversation/_update/.yml
|
287
|
+
- spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml
|
288
|
+
- spec/cassettes/RedboothRuby_Me/_initialize/.yml
|
289
|
+
- spec/cassettes/RedboothRuby_Me/_show/.yml
|
290
|
+
- spec/cassettes/RedboothRuby_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
291
|
+
- spec/cassettes/RedboothRuby_Me/_update/.yml
|
292
|
+
- spec/cassettes/RedboothRuby_Me/_update/integration/.yml
|
293
|
+
- spec/cassettes/RedboothRuby_Membership/_create/integration/.yml
|
294
|
+
- spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml
|
295
|
+
- spec/cassettes/RedboothRuby_Membership/_index/.yml
|
296
|
+
- spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
297
|
+
- spec/cassettes/RedboothRuby_Membership/_initialize/.yml
|
298
|
+
- spec/cassettes/RedboothRuby_Membership/_show/.yml
|
299
|
+
- spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
300
|
+
- spec/cassettes/RedboothRuby_Membership/_update/.yml
|
301
|
+
- spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml
|
302
|
+
- spec/cassettes/RedboothRuby_Organization/_create/.yml
|
303
|
+
- spec/cassettes/RedboothRuby_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
|
304
|
+
- spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
|
305
|
+
- spec/cassettes/RedboothRuby_Organization/_index/.yml
|
306
|
+
- spec/cassettes/RedboothRuby_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
307
|
+
- spec/cassettes/RedboothRuby_Organization/_initialize/.yml
|
308
|
+
- spec/cassettes/RedboothRuby_Organization/_show/.yml
|
309
|
+
- spec/cassettes/RedboothRuby_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
310
|
+
- spec/cassettes/RedboothRuby_Organization/_update/.yml
|
311
|
+
- spec/cassettes/RedboothRuby_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
|
312
|
+
- spec/cassettes/RedboothRuby_Person/_create/integration/.yml
|
313
|
+
- spec/cassettes/RedboothRuby_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
|
314
|
+
- spec/cassettes/RedboothRuby_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
|
315
|
+
- spec/cassettes/RedboothRuby_Person/_index/.yml
|
316
|
+
- spec/cassettes/RedboothRuby_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
317
|
+
- spec/cassettes/RedboothRuby_Person/_initialize/.yml
|
318
|
+
- spec/cassettes/RedboothRuby_Person/_show/.yml
|
319
|
+
- spec/cassettes/RedboothRuby_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
320
|
+
- spec/cassettes/RedboothRuby_Person/_update/.yml
|
321
|
+
- spec/cassettes/RedboothRuby_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
|
322
|
+
- spec/cassettes/RedboothRuby_Project/_create/.yml
|
323
|
+
- spec/cassettes/RedboothRuby_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
|
324
|
+
- spec/cassettes/RedboothRuby_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
|
325
|
+
- spec/cassettes/RedboothRuby_Project/_index/.yml
|
326
|
+
- spec/cassettes/RedboothRuby_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
327
|
+
- spec/cassettes/RedboothRuby_Project/_initialize/.yml
|
328
|
+
- spec/cassettes/RedboothRuby_Project/_show/.yml
|
329
|
+
- spec/cassettes/RedboothRuby_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
330
|
+
- spec/cassettes/RedboothRuby_Project/_update/.yml
|
331
|
+
- spec/cassettes/RedboothRuby_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
|
332
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_all/.yml
|
333
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_count/.yml
|
334
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_current_page/.yml
|
335
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
|
336
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_initialize/.yml
|
337
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/.yml
|
338
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
|
339
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_next_page/where_is_the_last_page/.yml
|
340
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_per_page/.yml
|
341
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
|
342
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/.yml
|
343
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
|
344
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_prev_page/where_is_the_first_page/.yml
|
345
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/.yml
|
346
|
+
- spec/cassettes/RedboothRuby_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
|
347
|
+
- spec/cassettes/RedboothRuby_Task/_create/.yml
|
348
|
+
- spec/cassettes/RedboothRuby_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
349
|
+
- spec/cassettes/RedboothRuby_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
350
|
+
- spec/cassettes/RedboothRuby_Task/_index/.yml
|
351
|
+
- spec/cassettes/RedboothRuby_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
352
|
+
- spec/cassettes/RedboothRuby_Task/_initialize/.yml
|
353
|
+
- spec/cassettes/RedboothRuby_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
354
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
|
355
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_id.yml
|
356
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_name.yml
|
357
|
+
- spec/cassettes/RedboothRuby_Task/_show/returns_a_task_with_the_correct_project_id.yml
|
358
|
+
- spec/cassettes/RedboothRuby_Task/_update/.yml
|
359
|
+
- spec/cassettes/RedboothRuby_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
360
|
+
- spec/cassettes/RedboothRuby_User/_create/.yml
|
361
|
+
- spec/cassettes/RedboothRuby_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
|
362
|
+
- spec/cassettes/RedboothRuby_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
363
|
+
- spec/cassettes/RedboothRuby_User/_create/name/.yml
|
364
|
+
- spec/cassettes/RedboothRuby_User/_create/project_id/.yml
|
365
|
+
- spec/cassettes/RedboothRuby_User/_create/task_list_id/.yml
|
366
|
+
- spec/cassettes/RedboothRuby_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
|
367
|
+
- spec/cassettes/RedboothRuby_User/_index/.yml
|
368
|
+
- spec/cassettes/RedboothRuby_User/_index/class/.yml
|
369
|
+
- spec/cassettes/RedboothRuby_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
370
|
+
- spec/cassettes/RedboothRuby_User/_initialize/.yml
|
371
|
+
- spec/cassettes/RedboothRuby_User/_initialize/assigned_id/.yml
|
372
|
+
- spec/cassettes/RedboothRuby_User/_initialize/description/.yml
|
373
|
+
- spec/cassettes/RedboothRuby_User/_initialize/due_on/.yml
|
374
|
+
- spec/cassettes/RedboothRuby_User/_initialize/id/.yml
|
375
|
+
- spec/cassettes/RedboothRuby_User/_initialize/initializes_all_attributes_correctly.yml
|
376
|
+
- spec/cassettes/RedboothRuby_User/_initialize/name/.yml
|
377
|
+
- spec/cassettes/RedboothRuby_User/_initialize/project_id/.yml
|
378
|
+
- spec/cassettes/RedboothRuby_User/_show/.yml
|
379
|
+
- spec/cassettes/RedboothRuby_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
380
|
+
- spec/cassettes/RedboothRuby_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
|
381
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_assigned_id.yml
|
382
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_id.yml
|
383
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_name.yml
|
384
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_task_with_the_correct_project_id.yml
|
385
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_email.yml
|
386
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_first_name.yml
|
387
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_id.yml
|
388
|
+
- spec/cassettes/RedboothRuby_User/_show/returns_a_user_with_the_correct_last_name.yml
|
389
|
+
- spec/cassettes/RedboothRuby_User/_update/.yml
|
390
|
+
- spec/cassettes/RedboothRuby_User/_update/id/.yml
|
391
|
+
- spec/cassettes/RedboothRuby_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
|
392
|
+
- spec/cassettes/RedboothRuby_User/_update/name/.yml
|
353
393
|
- spec/fixtures/hola.txt
|
354
|
-
- spec/redbooth/base_spec.rb
|
355
|
-
- spec/redbooth/client_spec.rb
|
356
|
-
- spec/redbooth/
|
357
|
-
- spec/redbooth/
|
358
|
-
- spec/redbooth/
|
359
|
-
- spec/redbooth/
|
360
|
-
- spec/redbooth/
|
361
|
-
- spec/redbooth/
|
362
|
-
- spec/redbooth/request/
|
363
|
-
- spec/redbooth/request/
|
364
|
-
- spec/redbooth/request/
|
365
|
-
- spec/redbooth/request/
|
366
|
-
- spec/redbooth/
|
367
|
-
- spec/redbooth/
|
394
|
+
- spec/redbooth-ruby/base_spec.rb
|
395
|
+
- spec/redbooth-ruby/client_spec.rb
|
396
|
+
- spec/redbooth-ruby/conversation_spec.rb
|
397
|
+
- spec/redbooth-ruby/me_spec.rb
|
398
|
+
- spec/redbooth-ruby/membership_spec.rb
|
399
|
+
- spec/redbooth-ruby/organization_spec.rb
|
400
|
+
- spec/redbooth-ruby/person_spec.rb
|
401
|
+
- spec/redbooth-ruby/project_spec.rb
|
402
|
+
- spec/redbooth-ruby/request/base_spec.rb
|
403
|
+
- spec/redbooth-ruby/request/collection_spec.rb
|
404
|
+
- spec/redbooth-ruby/request/connection_spec.rb
|
405
|
+
- spec/redbooth-ruby/request/info_spec.rb
|
406
|
+
- spec/redbooth-ruby/request/response_spec.rb
|
407
|
+
- spec/redbooth-ruby/request/validator_spec.rb
|
408
|
+
- spec/redbooth-ruby/task_spec.rb
|
409
|
+
- spec/redbooth-ruby/user_spec.rb
|
368
410
|
- spec/redbooth_spec.rb
|
369
411
|
- spec/shared/authentication_context.rb
|
370
412
|
- spec/spec_helper.rb
|