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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/spec/cassettes/RedboothRuby_Conversation/_create/.yml +47 -0
  3. data/spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml +47 -0
  4. data/spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml +84 -0
  5. data/spec/cassettes/RedboothRuby_Conversation/_index/.yml +99 -0
  6. data/spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml +99 -0
  7. data/spec/cassettes/RedboothRuby_Conversation/_initialize/.yml +45 -0
  8. data/spec/cassettes/RedboothRuby_Conversation/_show/.yml +45 -0
  9. data/spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +45 -0
  10. data/spec/cassettes/RedboothRuby_Conversation/_update/.yml +47 -0
  11. data/spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +47 -0
  12. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_initialize/.yml +0 -0
  13. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/.yml +0 -0
  14. 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
  15. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/.yml +0 -0
  16. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/integration/.yml +0 -0
  17. data/spec/cassettes/RedboothRuby_Membership/_create/integration/.yml +83 -0
  18. data/spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml +83 -0
  19. data/spec/cassettes/RedboothRuby_Membership/_index/.yml +58 -0
  20. data/spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +58 -0
  21. data/spec/cassettes/RedboothRuby_Membership/_initialize/.yml +44 -0
  22. data/spec/cassettes/RedboothRuby_Membership/_show/.yml +44 -0
  23. data/spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +44 -0
  24. data/spec/cassettes/RedboothRuby_Membership/_update/.yml +46 -0
  25. data/spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +46 -0
  26. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/.yml +0 -0
  27. 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
  28. 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
  29. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/.yml +0 -0
  30. 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
  31. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_initialize/.yml +0 -0
  32. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/.yml +0 -0
  33. 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
  34. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/.yml +0 -0
  35. 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
  36. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/integration/.yml +0 -0
  37. 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
  38. 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
  39. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/.yml +0 -0
  40. 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
  41. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_initialize/.yml +0 -0
  42. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/.yml +0 -0
  43. 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
  44. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/.yml +0 -0
  45. 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
  46. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/.yml +0 -0
  47. 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
  48. 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
  49. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/.yml +0 -0
  50. 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
  51. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_initialize/.yml +0 -0
  52. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/.yml +0 -0
  53. 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
  54. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/.yml +0 -0
  55. 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
  56. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_all/.yml +0 -0
  57. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_count/.yml +0 -0
  58. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/.yml +0 -0
  59. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/where_endpoint_is_not_paginated/.yml +0 -0
  60. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_initialize/.yml +0 -0
  61. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/.yml +0 -0
  62. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_endpoint_is_not_paginated/.yml +0 -0
  63. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_is_the_last_page/.yml +0 -0
  64. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/.yml +0 -0
  65. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/where_endpoint_is_not_paginated/.yml +0 -0
  66. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/.yml +0 -0
  67. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_endpoint_is_not_paginated/.yml +0 -0
  68. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_is_the_first_page/.yml +0 -0
  69. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/.yml +0 -0
  70. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/where_endpoint_is_not_paginated/.yml +0 -0
  71. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/.yml +0 -0
  72. 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
  73. 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
  74. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/.yml +0 -0
  75. 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
  76. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_initialize/.yml +0 -0
  77. 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
  78. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
  79. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_id.yml +0 -0
  80. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_name.yml +0 -0
  81. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
  82. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/.yml +0 -0
  83. 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
  84. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/.yml +0 -0
  85. 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
  86. 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
  87. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/name/.yml +0 -0
  88. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/project_id/.yml +0 -0
  89. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/task_list_id/.yml +0 -0
  90. 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
  91. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/.yml +0 -0
  92. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/class/.yml +0 -0
  93. 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
  94. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/.yml +0 -0
  95. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/assigned_id/.yml +0 -0
  96. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/description/.yml +0 -0
  97. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/due_on/.yml +0 -0
  98. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/id/.yml +0 -0
  99. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/initializes_all_attributes_correctly.yml +0 -0
  100. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/name/.yml +0 -0
  101. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/project_id/.yml +0 -0
  102. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/.yml +0 -0
  103. 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
  104. 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
  105. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
  106. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_id.yml +0 -0
  107. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_name.yml +0 -0
  108. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
  109. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_email.yml +0 -0
  110. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_first_name.yml +0 -0
  111. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_id.yml +0 -0
  112. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_last_name.yml +0 -0
  113. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/.yml +0 -0
  114. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/id/.yml +0 -0
  115. 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
  116. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/name/.yml +0 -0
  117. data/spec/{redbooth → redbooth-ruby}/base_spec.rb +2 -2
  118. data/spec/{redbooth → redbooth-ruby}/client_spec.rb +11 -11
  119. data/spec/redbooth-ruby/conversation_spec.rb +83 -0
  120. data/spec/{redbooth → redbooth-ruby}/me_spec.rb +4 -4
  121. data/spec/redbooth-ruby/membership_spec.rb +85 -0
  122. data/spec/{redbooth → redbooth-ruby}/organization_spec.rb +8 -8
  123. data/spec/{redbooth → redbooth-ruby}/person_spec.rb +7 -7
  124. data/spec/{redbooth → redbooth-ruby}/project_spec.rb +8 -8
  125. data/spec/{redbooth → redbooth-ruby}/request/base_spec.rb +9 -9
  126. data/spec/{redbooth → redbooth-ruby}/request/collection_spec.rb +7 -7
  127. data/spec/{redbooth → redbooth-ruby}/request/connection_spec.rb +10 -10
  128. data/spec/{redbooth → redbooth-ruby}/request/info_spec.rb +4 -4
  129. data/spec/{redbooth → redbooth-ruby}/request/response_spec.rb +3 -3
  130. data/spec/{redbooth → redbooth-ruby}/request/validator_spec.rb +9 -9
  131. data/spec/{redbooth → redbooth-ruby}/task_spec.rb +12 -12
  132. data/spec/{redbooth → redbooth-ruby}/user_spec.rb +4 -4
  133. data/spec/redbooth_spec.rb +12 -12
  134. data/spec/shared/authentication_context.rb +3 -3
  135. data/spec/spec_helper.rb +5 -1
  136. metadata +264 -222
@@ -1,6 +1,6 @@
1
1
  require "spec_helper"
2
2
 
3
- describe Redbooth::Request::Connection do
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) { Redbooth::Request::Connection.new(info) }
12
+ let(:connection) { RedboothRuby::Request::Connection.new(info) }
13
13
  let(:info) do
14
- Redbooth::Request::Info.new(:get,
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) { Redbooth::Client.new(session) }
22
- let(:session) { Redbooth::Session.new(access_token) }
23
- let(:redbooth_protocol) { Redbooth.configuration[:use_ssl] ? 'https' : 'http' }
24
- let(:redbooth_url) { "#{redbooth_protocol}://#{Redbooth.configuration[:api_base]}/#{Redbooth.configuration[:api_base_path]}/#{Redbooth.configuration[:api_version]}" }
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
- Redbooth.config do |configuration|
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: Redbooth::DOMAIN_BASE,
58
+ subdomain: RedboothRuby::DOMAIN_BASE,
59
59
  session: session
60
60
  )
61
- connection = Redbooth::Request::Connection.new(info)
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 Redbooth::Request::Info do
3
+ describe RedboothRuby::Request::Info do
4
4
  describe "#url" do
5
5
  it "constructs the url" do
6
- info = Redbooth::Request::Info.new(:get, nil, "random", {id: 1} )
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 = Redbooth::Request::Info.new(:get, nil, "random", nil)
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 = Redbooth::Request::Info.new(:get, nil, "random", nil)
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 Redbooth::Request::Response do
3
+ describe RedboothRuby::Request::Response do
4
4
  let(:headers) { {} }
5
5
  let(:status) { 200 }
6
6
  let(:body) { '{"response":"ok"}' }
7
- let(:response) { Redbooth::Request::Response.new(body: body,
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 Redbooth::Request::Response }
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 Redbooth::Request::Validator do
4
- let(:info) { Redbooth::Request::Info.new(:get, nil, "random", OpenStruct.new(id: 1)) }
5
- let(:validator) { Redbooth::Request::Validator.new info }
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 Redbooth::Request::Response }
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(Redbooth::AuthenticationError) }
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(Redbooth::OauhtTokenExpired) }
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(Redbooth::OauhtTokenRevoked) }
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(Redbooth::APIError) }
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(Redbooth::NotFound) }
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 Redbooth::Task, vcr: 'tasks' do
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) { Redbooth::Task.create(create_task_params.merge(session: session)) }
11
+ let(:new_task) { RedboothRuby::Task.create(create_task_params.merge(session: session)) }
12
12
  let(:task) do
13
- Redbooth::Task.show(session: session, id: 1)
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(Redbooth).to receive(:request).with(:get, nil, "tasks/1", {}, { session: session }).and_call_original
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 { Redbooth::Task.update(session: session, id: 2, name: 'new test name') }
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(Redbooth).to receive(:request).with(:put, nil, "tasks/2", { name: 'new test name' }, { session: session }).and_call_original
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(Redbooth).to receive(:request).with(:post, nil, "tasks", create_task_params, { session: session }).and_call_original
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 { Redbooth::Task.delete(session: session, id: new_task.id) }
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(Redbooth).to receive(:request).with(:delete, nil, "tasks/#{new_task.id}", {}, { session: session }).and_call_original
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 { Redbooth::Task.index(session: session) }
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(Redbooth).to receive(:request).with(:get, nil, "tasks", {}, { session: session }).and_call_original
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 Redbooth::Request::Collection }
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 Redbooth::User, vcr: 'users' do
3
+ describe RedboothRuby::User, vcr: 'users' do
4
4
  include_context 'authentication'
5
5
 
6
6
  let(:user) do
7
- Redbooth::User.show(session: session, id: 1)
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 { Redbooth::User.show(session: session, id: 1) }
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(Redbooth).to receive(:request).with(:get, nil, "users/1", {}, { session: session }).and_call_original
23
+ expect(RedboothRuby).to receive(:request).with(:get, nil, "users/1", {}, { session: session }).and_call_original
24
24
  subject
25
25
  end
26
26
 
@@ -1,10 +1,10 @@
1
1
  require "spec_helper"
2
2
 
3
- describe Redbooth do
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 { Redbooth.request(:get, nil, 'clients', {}) }.to raise_error(Redbooth::AuthenticationError)
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) { Redbooth::Client.new(session) }
21
- let(:session) { Redbooth::Session.new(access_token) }
22
- let(:redbooth_protocol) { Redbooth.configuration[:use_ssl] ? 'https' : 'http' }
23
- let(:redbooth_url) { "#{redbooth_protocol}://#{Redbooth.configuration[:api_base]}/#{Redbooth.configuration[:api_base_path]}/#{Redbooth.configuration[:api_version]}" }
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
- Redbooth.config do |configuration|
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
- /#{Redbooth.configuration[:api_base]}/
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
- Redbooth.request(:get, nil, 'user',
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
- Redbooth.request(:get,
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
- Redbooth.request(:post, nil, "user", {}, { session: session })
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
- Redbooth.request(:post, nil, "user", {id: 'new_id'}, { session: session })
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) { Redbooth::Client.new(session) }
12
- let(:session) { Redbooth::Session.new(access_token) }
11
+ let(:client) { RedboothRuby::Client.new(session) }
12
+ let(:session) { RedboothRuby::Session.new(access_token) }
13
13
 
14
14
  before :each do
15
- Redbooth.config do |configuration|
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.2
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-10 00:00:00.000000000 Z
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/Redbooth_Me/_initialize/.yml
120
- - spec/cassettes/Redbooth_Me/_show/.yml
121
- - spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
122
- - spec/cassettes/Redbooth_Me/_update/.yml
123
- - spec/cassettes/Redbooth_Me/_update/integration/.yml
124
- - spec/cassettes/Redbooth_Organization/_create/.yml
125
- - spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
126
- - spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
127
- - spec/cassettes/Redbooth_Organization/_index/.yml
128
- - spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
129
- - spec/cassettes/Redbooth_Organization/_initialize/.yml
130
- - spec/cassettes/Redbooth_Organization/_show/.yml
131
- - spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
132
- - spec/cassettes/Redbooth_Organization/_update/.yml
133
- - spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
134
- - spec/cassettes/Redbooth_Person/_create/integration/.yml
135
- - spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
136
- - spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
137
- - spec/cassettes/Redbooth_Person/_index/.yml
138
- - spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
139
- - spec/cassettes/Redbooth_Person/_initialize/.yml
140
- - spec/cassettes/Redbooth_Person/_show/.yml
141
- - spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
142
- - spec/cassettes/Redbooth_Person/_update/.yml
143
- - spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
144
- - spec/cassettes/Redbooth_Project/_create/.yml
145
- - spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
146
- - spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
147
- - spec/cassettes/Redbooth_Project/_index/.yml
148
- - spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
149
- - spec/cassettes/Redbooth_Project/_initialize/.yml
150
- - spec/cassettes/Redbooth_Project/_show/.yml
151
- - spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
152
- - spec/cassettes/Redbooth_Project/_update/.yml
153
- - spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
154
- - spec/cassettes/Redbooth_Request_Collection/_all/.yml
155
- - spec/cassettes/Redbooth_Request_Collection/_count/.yml
156
- - spec/cassettes/Redbooth_Request_Collection/_current_page/.yml
157
- - spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
158
- - spec/cassettes/Redbooth_Request_Collection/_initialize/.yml
159
- - spec/cassettes/Redbooth_Request_Collection/_next_page/.yml
160
- - spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
161
- - spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml
162
- - spec/cassettes/Redbooth_Request_Collection/_per_page/.yml
163
- - spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
164
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml
165
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
166
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml
167
- - spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml
168
- - spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
169
- - spec/cassettes/Redbooth_Task/_create/.yml
170
- - spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
171
- - spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
172
- - spec/cassettes/Redbooth_Task/_index/.yml
173
- - spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
174
- - spec/cassettes/Redbooth_Task/_initialize/.yml
175
- - spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
176
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
177
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml
178
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml
179
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml
180
- - spec/cassettes/Redbooth_Task/_update/.yml
181
- - spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
182
- - spec/cassettes/Redbooth_User/_create/.yml
183
- - spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
184
- - spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
185
- - spec/cassettes/Redbooth_User/_create/name/.yml
186
- - spec/cassettes/Redbooth_User/_create/project_id/.yml
187
- - spec/cassettes/Redbooth_User/_create/task_list_id/.yml
188
- - spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
189
- - spec/cassettes/Redbooth_User/_index/.yml
190
- - spec/cassettes/Redbooth_User/_index/class/.yml
191
- - spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
192
- - spec/cassettes/Redbooth_User/_initialize/.yml
193
- - spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml
194
- - spec/cassettes/Redbooth_User/_initialize/description/.yml
195
- - spec/cassettes/Redbooth_User/_initialize/due_on/.yml
196
- - spec/cassettes/Redbooth_User/_initialize/id/.yml
197
- - spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml
198
- - spec/cassettes/Redbooth_User/_initialize/name/.yml
199
- - spec/cassettes/Redbooth_User/_initialize/project_id/.yml
200
- - spec/cassettes/Redbooth_User/_show/.yml
201
- - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
202
- - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
203
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml
204
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml
205
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml
206
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml
207
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml
208
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml
209
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml
210
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml
211
- - spec/cassettes/Redbooth_User/_update/.yml
212
- - spec/cassettes/Redbooth_User/_update/id/.yml
213
- - spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
214
- - spec/cassettes/Redbooth_User/_update/name/.yml
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/me_spec.rb
219
- - spec/redbooth/organization_spec.rb
220
- - spec/redbooth/person_spec.rb
221
- - spec/redbooth/project_spec.rb
222
- - spec/redbooth/request/base_spec.rb
223
- - spec/redbooth/request/collection_spec.rb
224
- - spec/redbooth/request/connection_spec.rb
225
- - spec/redbooth/request/info_spec.rb
226
- - spec/redbooth/request/response_spec.rb
227
- - spec/redbooth/request/validator_spec.rb
228
- - spec/redbooth/task_spec.rb
229
- - spec/redbooth/user_spec.rb
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/Redbooth_Me/_initialize/.yml
258
- - spec/cassettes/Redbooth_Me/_show/.yml
259
- - spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
260
- - spec/cassettes/Redbooth_Me/_update/.yml
261
- - spec/cassettes/Redbooth_Me/_update/integration/.yml
262
- - spec/cassettes/Redbooth_Organization/_create/.yml
263
- - spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml
264
- - spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml
265
- - spec/cassettes/Redbooth_Organization/_index/.yml
266
- - spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
267
- - spec/cassettes/Redbooth_Organization/_initialize/.yml
268
- - spec/cassettes/Redbooth_Organization/_show/.yml
269
- - spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
270
- - spec/cassettes/Redbooth_Organization/_update/.yml
271
- - spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml
272
- - spec/cassettes/Redbooth_Person/_create/integration/.yml
273
- - spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml
274
- - spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml
275
- - spec/cassettes/Redbooth_Person/_index/.yml
276
- - spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
277
- - spec/cassettes/Redbooth_Person/_initialize/.yml
278
- - spec/cassettes/Redbooth_Person/_show/.yml
279
- - spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
280
- - spec/cassettes/Redbooth_Person/_update/.yml
281
- - spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml
282
- - spec/cassettes/Redbooth_Project/_create/.yml
283
- - spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml
284
- - spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml
285
- - spec/cassettes/Redbooth_Project/_index/.yml
286
- - spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
287
- - spec/cassettes/Redbooth_Project/_initialize/.yml
288
- - spec/cassettes/Redbooth_Project/_show/.yml
289
- - spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
290
- - spec/cassettes/Redbooth_Project/_update/.yml
291
- - spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml
292
- - spec/cassettes/Redbooth_Request_Collection/_all/.yml
293
- - spec/cassettes/Redbooth_Request_Collection/_count/.yml
294
- - spec/cassettes/Redbooth_Request_Collection/_current_page/.yml
295
- - spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml
296
- - spec/cassettes/Redbooth_Request_Collection/_initialize/.yml
297
- - spec/cassettes/Redbooth_Request_Collection/_next_page/.yml
298
- - spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml
299
- - spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml
300
- - spec/cassettes/Redbooth_Request_Collection/_per_page/.yml
301
- - spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
302
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml
303
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
304
- - spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml
305
- - spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml
306
- - spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml
307
- - spec/cassettes/Redbooth_Task/_create/.yml
308
- - spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
309
- - spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
310
- - spec/cassettes/Redbooth_Task/_index/.yml
311
- - spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
312
- - spec/cassettes/Redbooth_Task/_initialize/.yml
313
- - spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
314
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml
315
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml
316
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml
317
- - spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml
318
- - spec/cassettes/Redbooth_Task/_update/.yml
319
- - spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
320
- - spec/cassettes/Redbooth_User/_create/.yml
321
- - spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml
322
- - spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
323
- - spec/cassettes/Redbooth_User/_create/name/.yml
324
- - spec/cassettes/Redbooth_User/_create/project_id/.yml
325
- - spec/cassettes/Redbooth_User/_create/task_list_id/.yml
326
- - spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml
327
- - spec/cassettes/Redbooth_User/_index/.yml
328
- - spec/cassettes/Redbooth_User/_index/class/.yml
329
- - spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
330
- - spec/cassettes/Redbooth_User/_initialize/.yml
331
- - spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml
332
- - spec/cassettes/Redbooth_User/_initialize/description/.yml
333
- - spec/cassettes/Redbooth_User/_initialize/due_on/.yml
334
- - spec/cassettes/Redbooth_User/_initialize/id/.yml
335
- - spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml
336
- - spec/cassettes/Redbooth_User/_initialize/name/.yml
337
- - spec/cassettes/Redbooth_User/_initialize/project_id/.yml
338
- - spec/cassettes/Redbooth_User/_show/.yml
339
- - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
340
- - spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml
341
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml
342
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml
343
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml
344
- - spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml
345
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml
346
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml
347
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml
348
- - spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml
349
- - spec/cassettes/Redbooth_User/_update/.yml
350
- - spec/cassettes/Redbooth_User/_update/id/.yml
351
- - spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml
352
- - spec/cassettes/Redbooth_User/_update/name/.yml
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/me_spec.rb
357
- - spec/redbooth/organization_spec.rb
358
- - spec/redbooth/person_spec.rb
359
- - spec/redbooth/project_spec.rb
360
- - spec/redbooth/request/base_spec.rb
361
- - spec/redbooth/request/collection_spec.rb
362
- - spec/redbooth/request/connection_spec.rb
363
- - spec/redbooth/request/info_spec.rb
364
- - spec/redbooth/request/response_spec.rb
365
- - spec/redbooth/request/validator_spec.rb
366
- - spec/redbooth/task_spec.rb
367
- - spec/redbooth/user_spec.rb
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