Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes cassettes endpoints.

  • Loading branch information...
commit f11ec2fd444a84c96d3a2cd99d8ba74551863cbb 1 parent 4ee1309
Brian Leonard & Steve Hull authored nolastan committed
View
2  lib/taskrabbit/offer.rb
@@ -4,7 +4,7 @@ class Offer < Smash
property :charge_price
property :comment
property :state
- property :runner, :transformer => User
+ property :runner_id
class << self
def all(scope, options = {})
View
3  lib/taskrabbit/task.rb
@@ -72,7 +72,8 @@ def delete!
end
def reload(method, path, options = {})
- super(method, path, self.class.options_with_class_includes(options))
+ options = self.class.options_with_class_includes(options) if method.to_s == 'get'
+ super(method, path, options)
end
end
end
View
2  spec/support/cassettes/account/tasks.yml
@@ -33,7 +33,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/users/49720/tasks?
+ uri: https://taskrabbitdev.com/api/v1/users/49720/tasks?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
384 spec/support/cassettes/errors/404.yml
@@ -1,362 +1,34 @@
----
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks/something-that-doesnot-exists?
+ uri: https://taskrabbitdev.com:443/api/v1/tasks/something-that-doesnot-exists?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
- headers:
- x-client-application:
- - ""
- authorization:
+ headers:
+ x-client-application:
+ - <API_SECRET>
+ authorization:
- OAuth
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
code: 404
message: Not Found
- headers:
- content-type:
- - text/html; charset=utf-8
- server:
- - WEBrick/1.3.1 (Ruby/1.8.7/2011-02-18)
- date:
- - Sat, 17 Mar 2012 23:11:28 GMT
- content-length:
- - "23415"
- cache-control:
+ headers:
+ server:
+ - nginx/1.0.11
+ date:
+ - Thu, 13 Sep 2012 00:54:53 GMT
+ content-type:
+ - application/json; charset=utf-8
+ status:
+ - 404 Not Found
+ x-runtime:
+ - '0.031340'
+ content-length:
+ - '53'
+ x-ua-compatible:
+ - IE=Edge,chrome=1
+ cache-control:
- no-cache
- body: |
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Action Controller: Exception caught</title>
- <style>
- body { background-color: #fff; color: #333; }
-
- body, p, ol, ul, td {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
- }
-
- pre {
- background-color: #eee;
- padding: 10px;
- font-size: 11px;
- }
-
- a { color: #000; }
- a:visited { color: #666; }
- a:hover { color: #fff; background-color:#000; }
- </style>
- </head>
- <body>
-
- <h1>
- ActiveRecord::RecordNotFound
-
- in Api/v1/tasksController#show
-
- </h1>
- <pre>ActiveRecord::RecordNotFound</pre>
-
-
-
- <p><code>RAILS_ROOT: /Users/xlrj/Sites/taskrabbit</code></p>
-
- <div id="traces">
-
-
- <a href="#" onclick="document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';; return false;">Application Trace</a> |
-
-
- <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';; return false;">Framework Trace</a> |
-
-
- <a href="#" onclick="document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';; return false;">Full Trace</a>
-
-
-
- <div id="Application-Trace" style="display: block;">
- <pre><code>/Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/friendly_id-2.2.7/lib/friendly_id/sluggable_class_methods.rb:30:in `find_one'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/base.rb:1603:in `find_from_ids'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/base.rb:620:in `find'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:141:in `load_controller_object'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:497:in `send'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:497:in `filter_resource_access'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:182:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:182:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:225:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:629:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:638:in `run_before_filters'
- /Users/xlrj/Sites/taskrabbit/app/controllers/rabbit/base_controller.rb:105:in `set_thread_variables'
- /Users/xlrj/Sites/taskrabbit/app/controllers/rabbit/client_app_controller.rb:52:in `set_thread_variables'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:186:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:635:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:638:in `run_before_filters'
- /Users/xlrj/Sites/taskrabbit/lib/master_slave_hooks.rb:51:in `with_consistency_filter'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:186:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:635:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:in `ms'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:in `ms'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/flash.rb:151:in `perform_action'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:in `process_without_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:606:in `process_without_compass'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/compass-0.11.5/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:391:in `process'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:386:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/routing/route_set.rb:438:in `call'</code></pre>
- </div>
-
- <div id="Framework-Trace" style="display: none;">
- <pre><code>/Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:87:in `dispatch'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:121:in `_call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:114:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:108:in `call'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:162:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:95:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:92:in `each'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:92:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:23:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:82:in `start'
- script/server:3:in `require'
- script/server:3</code></pre>
- </div>
-
- <div id="Full-Trace" style="display: none;">
- <pre><code>/Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/friendly_id-2.2.7/lib/friendly_id/sluggable_class_methods.rb:30:in `find_one'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/base.rb:1603:in `find_from_ids'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/base.rb:620:in `find'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:141:in `load_controller_object'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:497:in `send'
- /Users/xlrj/Sites/taskrabbit/gems/declarative_authorization/lib/declarative_authorization/in_controller.rb:497:in `filter_resource_access'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:182:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:182:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:166:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:225:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:629:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:638:in `run_before_filters'
- /Users/xlrj/Sites/taskrabbit/app/controllers/rabbit/base_controller.rb:105:in `set_thread_variables'
- /Users/xlrj/Sites/taskrabbit/app/controllers/rabbit/client_app_controller.rb:52:in `set_thread_variables'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:186:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:635:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:638:in `run_before_filters'
- /Users/xlrj/Sites/taskrabbit/lib/master_slave_hooks.rb:51:in `with_consistency_filter'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/callbacks.rb:178:in `evaluate_method'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:186:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:635:in `run_before_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:615:in `call_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:in `ms'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/benchmark.rb:308:in `realtime'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activesupport-2.3.10/lib/active_support/core_ext/benchmark.rb:17:in `ms'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/flash.rb:151:in `perform_action'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:in `send'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:532:in `process_without_filters'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/filters.rb:606:in `process_without_compass'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/compass-0.11.5/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:in `process'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:391:in `process'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/base.rb:386:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/routing/route_set.rb:438:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:87:in `dispatch'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:121:in `_call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/query_cache.rb:29:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/query_cache.rb:29:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/query_cache.rb:9:in `cache'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/query_cache.rb:28:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/activerecord-2.3.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:60:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:60:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:60:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:60:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:136:in `call_app!'
- /Users/xlrj/Sites/taskrabbit/lib/omniauth/strategies/facebook_token.rb:21:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:60:in `call!'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/strategy.rb:22:in `call'
- /Users/xlrj/Sites/taskrabbit/gems/oa-core/lib/omniauth/builder.rb:30:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/sass-3.1.15/lib/sass/plugin/rack.rb:54:in `call'
- /Users/xlrj/Sites/taskrabbit/lib/middleware/referral_filter.rb:33:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/string_coercion.rb:25:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/head.rb:9:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/params_parser.rb:15:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/session/cookie_store.rb:100:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/hoptoad_notifier-2.2.2/lib/hoptoad_notifier/rack.rb:27:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/failsafe.rb:26:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/lock.rb:11:in `synchronize'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/lock.rb:11:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:114:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/reloader.rb:34:in `run'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/actionpack-2.3.10/lib/action_controller/dispatcher.rb:108:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rails-2.3.10/lib/rails/rack/static.rb:31:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rails-2.3.10/lib/rails/rack/log_tailer.rb:17:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/content_length.rb:13:in `call'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in `service'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:162:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:95:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:92:in `each'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:92:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:23:in `start'
- /Users/xlrj/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/1.8/webrick/server.rb:82:in `start'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rack-1.1.0/lib/rack/handler/webrick.rb:14:in `run'
- /Users/xlrj/.rvm/gems/ree-1.8.7-2011.03@taskrabbit/gems/rails-2.3.10/lib/commands/server.rb:111
- script/server:3:in `require'
- script/server:3</code></pre>
- </div>
-
- </div>
-
-
-
-
-
-
- <h2 style="margin-top: 30px">Request</h2>
- <p><b>Parameters</b>: <pre>{&quot;format&quot;=&gt;:json,
- &quot;id&quot;=&gt;&quot;something-that-doesnot-exists&quot;}</pre></p>
-
- <p><a href="#" onclick="document.getElementById('session_dump').style.display='block'; return false;">Show session dump</a></p>
- <div id="session_dump" style="display:none"><pre class='debug_dump'>---
- </pre></div>
-
-
- <h2 style="margin-top: 30px">Response</h2>
- <p><b>Headers</b>: <pre>{&quot;Content-Type&quot;=&gt;&quot;&quot;,
- &quot;Cache-Control&quot;=&gt;&quot;no-cache&quot;}</pre></p>
-
-
-
- </body>
- </html><script type="text/javascript">
- var Hoptoad = {
- host : &quot;hoptoadapp.com&quot;,
- api_key : &quot;d05f933d72e9ce90a819ed66a3f3e5cd&quot;,
- notice : {&quot;error_class&quot;:&quot;ActiveRecord::RecordNotFound&quot;,&quot;line_number&quot;:&quot;30&quot;,&quot;action&quot;:&quot;show&quot;,&quot;component&quot;:&quot;api/v1/tasks&quot;,&quot;file&quot;:&quot;[GEM_ROOT]/gems/friendly_id-2.2.7/lib/friendly_id/sluggable_class_methods.rb&quot;,&quot;environment_name&quot;:&quot;production&quot;},
- message : 'This error exists in production!',
-
- initialize: function() {
- if (this.initialized) {
- return;
- } else {
- this.initialized = true;
- }
-
- var data = [];
-
- for (var key in this.notice) {
- data[data.length] = 'notice[' + key + ']=' + this.notice[key];
- }
-
- data[data.length] = 'notice[api_key]=' + this.api_key;
- data[data.length] = 'callback=Hoptoad.onSuccess';
- data[data.length] = '_=' + (new Date()).getTime();
-
- var head = document.getElementsByTagName('head')[0];
- var done = false;
-
- var
- script = document.createElement('script');
- script.src = 'http://' + this.host + '/notices_api/v1/notices/exist?' +
- data.join('&');
- script.type = 'text/javascript';
- script.onload = script.onreadystatechange = function(){
- if (!done && (!this.readyState ||
- this.readyState == 'loaded' || this.readyState == 'complete')) {
-
- done = true;
-
- // Handle memory leak in IE. (via jQuery)
- script.onload = script.onreadystatechange = null;
- head.removeChild(script);
- }
- };
-
- head.appendChild(script);
- },
-
- onSuccess: function(error) {
- var body = document.getElementsByTagName('body')[0];
- var text = document.createTextNode(this.message);
- var element = document.createElement('a');
-
- element.id = 'hoptoad';
- element.href = 'http://' + error.subdomain + '.' + this.host +
- '/projects/' + error.project_id + '/errors/' + error.id;
- element.appendChild(text);
-
- body.insertBefore(element, body.firstChild);
-
- var h1 = document.getElementsByTagName('h1')[0];
- var pre = document.getElementsByTagName('pre')[0];
- var wrapper = document.createElement('div');
-
- wrapper.id = 'wrapper';
- wrapper.appendChild(h1);
- wrapper.appendChild(pre);
-
- body.insertBefore(wrapper, body.children[1]);
- }
- };
-
- window.onload = function() {
- Hoptoad.initialize.apply(Hoptoad);
- };
- </script>
-
- <style type="text/css">
- #hoptoad {
- background: #FFF url(http://hoptoadapp.com/images/fell-off-the-toad.gif) no-repeat top right;
- color: #F00;
- padding: 45px 101px 45px 12px;
- font-size: 14px;
- font-weight: bold;
- display: block;
- float: right;
- }
-
- #wrapper {
- padding-right: 360px;
- }
- </style>
-
- http_version: "1.1"
+ body: ! '{"error":"The requested resource could not be found"}'
+ http_version: '1.1'
View
2  spec/support/cassettes/tasks/all.yml
@@ -2,7 +2,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks?
+ uri: https://taskrabbitdev.com/api/v1/tasks?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
36 spec/support/cassettes/tasks/find.yml
@@ -2,41 +2,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks/22545?
- body:
- headers:
- x-client-application:
- - <API_SECRET>
- authorization:
- - OAuth
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
- code: 200
- message: OK
- headers:
- etag:
- - ! '"1abb040c2b73a76e1261969893a363f8"'
- content-type:
- - application/json; charset=utf-8
- x-runtime:
- - '752'
- server:
- - WEBrick/1.3.1 (Ruby/1.8.7/2011-02-18)
- date:
- - Sat, 17 Mar 2012 23:12:39 GMT
- content-length:
- - '774'
- cache-control:
- - private, max-age=0, must-revalidate
- body: ! '{"name":"2 Hours of House Cleaning + 1 Hour of House Chores","city":{"name":"SF
- Bay Area","lng":-122.419416,"id":3,"links":{"get":"/api/v1/cities/3"},"lat":37.77493},"complete_by_time":1318381200,"id":22545,"state_changed_at":1317839370,"cost_in_cents":0,"links":{"html":"http://local.taskrabbit.com/tasks/task--278","get":"/api/v1/tasks/22545"},"runners":{"items":[]},"state_label":"closed","assign_by_time":1318014000,"user":{"city":{"name":"SF
- Bay Area","lng":-122.419416,"id":3,"links":{"get":"/api/v1/cities/3"},"lat":37.77493},"id":49658,"links":{"get":"/api/v1/users/49658","avatar_url":"http://local.taskrabbit.com/images/default_avatars/poster_thumb.png"},"full_name":"Jean-Richard
- L.","short_name":"Jean-Richard","display_name":"Jean-Richard L."},"state":"closed"}'
- http_version: '1.1'
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
- method: :get
- uri: https://taskrabbitdev.com:443/api/v1/tasks/52?
+ uri: https://taskrabbitdev.com/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
39 spec/support/cassettes/tasks/properties.yml
@@ -2,44 +2,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks/22545?
- body:
- headers:
- x-client-application:
- - <API_SECRET>
- authorization:
- - OAuth
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
- code: 200
- message: OK
- headers:
- etag:
- - ! '"d7e8594808d34c7e4e8d87737f8ec5dc"'
- content-type:
- - application/json; charset=utf-8
- x-runtime:
- - '726'
- server:
- - WEBrick/1.3.1 (Ruby/1.8.7/2011-02-18)
- date:
- - Sat, 17 Mar 2012 23:31:20 GMT
- content-length:
- - '1432'
- cache-control:
- - private, max-age=0, must-revalidate
- body: ! '{"name":"2 Hours of House Cleaning + 1 Hour of House Chores","city":{"name":"SF
- Bay Area","lng":-122.419416,"id":3,"links":{"get":"/api/v1/cities/3"},"lat":37.77493},"complete_by_time":1318381200,"id":22545,"state_changed_at":1332026993,"cost_in_cents":0,"runner":{"city":{"name":"Boston","lng":-71.059773,"id":1,"links":{"get":"/api/v1/cities/1"},"lat":42.358431},"runner":true,"id":66,"links":{"get":"/api/v1/users/66","avatar_url":"http://s3.amazonaws.com/taskrabbit-dev/avatars/66/thumb/jordan.png?1276495549"},"full_name":"Jordan
- H.","short_name":"Jordan","display_name":"Jordan H."},"links":{"html":"http://local.taskrabbit.com/tasks/task--278","get":"/api/v1/tasks/22545"},"runners":{"items":[{"city":{"name":"Boston","lng":-71.059773,"id":1,"links":{"get":"/api/v1/cities/1"},"lat":42.358431},"id":66,"runner":true,"short_name":"Jordan","full_name":"Jordan
- H.","links":{"get":"/api/v1/users/66","avatar_url":"http://s3.amazonaws.com/taskrabbit-dev/avatars/66/thumb/jordan.png?1276495549"},"display_name":"Jordan
- H."}]},"state_label":"closed","assign_by_time":1318014000,"user":{"city":{"name":"SF
- Bay Area","lng":-122.419416,"id":3,"links":{"get":"/api/v1/cities/3"},"lat":37.77493},"id":49658,"links":{"get":"/api/v1/users/49658","avatar_url":"http://local.taskrabbit.com/images/default_avatars/poster_thumb.png"},"full_name":"Jean-Richard
- L.","short_name":"Jean-Richard","display_name":"Jean-Richard L."},"state":"closed"}'
- http_version: '1.1'
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
- method: :get
- uri: https://taskrabbitdev.com:443/api/v1/tasks/52?
+ uri: https://taskrabbitdev.com/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
2  spec/support/cassettes/tasks/save.yml
@@ -33,7 +33,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks/22679?
+ uri: https://taskrabbitdev.com/api/v1/tasks/22679?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
55 spec/support/cassettes/tasks/with_offers_properties.yml
@@ -2,56 +2,11 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes&include[offer][]=errors&include[offer][]=links&include[offer][]=error&include[offer][]=id&include[offer][]=charge_price&include[offer][]=comment&include[offer][]=state&include[offer][]=runner
- body:
- headers:
- x-client-application:
- - <API_SECRET>
- authorization:
- - OAuth <USER_WITH_CARD>
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
- code: 200
- message: OK
- headers:
- server:
- - nginx/1.0.11
- date:
- - Thu, 13 Sep 2012 00:15:04 GMT
- content-type:
- - application/json; charset=utf-8
- status:
- - 200 OK
- set-cookie:
- - current_geo=1053; path=/; expires=Tue, 13-Nov-2012 01:15:04 GMT
- x-runtime:
- - '0.233808'
- content-length:
- - '1625'
- etag:
- - ! '"7752ebc8b69f2bd2122470c71bff137e"'
- x-ua-compatible:
- - IE=Edge,chrome=1
- cache-control:
- - max-age=0, private, must-revalidate
- body: ! '{"private_runner":false,"links":{"put":"/api/v1/tasks/52","html":"http://s-app1.taskrabbit.com/tasks/house-cleaning-7091","get":"/api/v1/tasks/52","offers":"/api/v1/tasks/52/offers","authenticated":"http://s-app1.taskrabbit.com/go/82d359e524666a2d8b96f6df1fbfcad4a720a0b4fed8c3f0985139a13a4d6433b65f7f05e80360af131d8f9638f8307e035b","delete":"/api/v1/tasks/52"},"charge_price":0,"runners":{"items":[]},"cost_in_cents":0,"id":52,"state_changed_at":1347490579,"assignment_type":"review","description":"I
- need to clean my house","city":{"links":{"get":"/api/v1/cities/3"},"lat":37.77493,"id":1053,"lng":-122.419416,"name":"SF
- Bay Area"},"assign_by_time":1347577200,"name":"House Cleaning","offers":{"items":[{"charge_price":26,"id":7,"runner":{"links":{"get":"/api/v1/users/32","avatar_url":"http://s-app1.taskrabbit.com/images/default_avatars/runner_thumb.png"},"friend_code_url":"http://taskrabbit.com/PAL/32","id":32,"short_name":"Fancy","display_name":"Fancy
- R.","runner":true,"runner_level":1,"city":{"links":{"get":"/api/v1/cities/4"},"lat":40.714353,"id":1060,"lng":-74.005973,"name":"New
- York City"},"email":"fancyrabbit@example.com","full_name":"Fancy R."},"state":"sent"}]},"location_visits":{"items":[{"lat":37.7867363,"zip":"94102","id":11,"complete":"213
- Powell Street, San Francisco, CA, San Francisco, CA 94102","partial":"Powell
- Street, San Francisco, CA, San Francisco, CA 94102","location_id":52,"lng":-122.4080542,"city":"San
- Francisco","name":"Home","approximate_radius":0,"address":"213 Powell Street,
- San Francisco, CA","state":"CA"}]},"state_label":"posted","complete_by_time":1347663600,"state":"opened"}'
- http_version: '1.1'
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
- method: :get
uri: https://taskrabbitdev.com:443/api/v1/tasks/52?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
- - <API_SECRET>
+ - ''
authorization:
- OAuth <USER_WITH_CARD>
response: !ruby/struct:VCR::Response
@@ -62,15 +17,15 @@
server:
- nginx/1.0.11
date:
- - Thu, 13 Sep 2012 00:30:49 GMT
+ - Thu, 13 Sep 2012 00:52:45 GMT
content-type:
- application/json; charset=utf-8
status:
- 200 OK
set-cookie:
- - current_geo=1053; path=/; expires=Tue, 13-Nov-2012 01:30:49 GMT
+ - current_geo=1053; path=/; expires=Tue, 13-Nov-2012 01:52:45 GMT
x-runtime:
- - '0.192928'
+ - '0.186363'
content-length:
- '1245'
etag:
@@ -81,7 +36,7 @@
- max-age=0, private, must-revalidate
body: ! '{"private_runner":false,"links":{"put":"/api/v1/tasks/52","html":"http://s-app1.taskrabbit.com/tasks/house-cleaning-7091","get":"/api/v1/tasks/52","offers":"/api/v1/tasks/52/offers","authenticated":"http://s-app1.taskrabbit.com/go/82d359e524666a2d8b96f6df1fbfcad4a720a0b4fed8c3f0985139a13a4d6433b65f7f05e80360af131d8f9638f8307e035b","delete":"/api/v1/tasks/52"},"charge_price":0,"runners":{"items":[]},"cost_in_cents":0,"id":52,"state_changed_at":1347490579,"assignment_type":"review","description":"I
need to clean my house","city":{"links":{"get":"/api/v1/cities/3"},"lat":37.77493,"id":1053,"lng":-122.419416,"name":"SF
- Bay Area"},"assign_by_time":1347577200,"name":"House Cleaning","offers":{"items":[{"charge_price":26,"id":7,"created_at":1347493865,"comments":"I
+ Bay Area"},"assign_by_time":1347577200,"name":"House Cleaning","offers":{"items":[{"charge_price":26, "runner_id": 31, "id":7,"created_at":1347493865,"comments":"I
clean a lot!","state":"sent"}]},"location_visits":{"items":[{"lat":37.7867363,"zip":"94102","id":11,"complete":"213
Powell Street, San Francisco, CA, San Francisco, CA 94102","partial":"Powell
Street, San Francisco, CA, San Francisco, CA 94102","location_id":52,"lng":-122.4080542,"city":"San
View
50 spec/support/cassettes/tasks/without_client.yml
@@ -1,30 +1,34 @@
----
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/tasks?
+ uri: https://taskrabbitdev.com:443/api/v1/tasks?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
- headers:
- x-client-application:
- - ""
- authorization:
+ headers:
+ x-client-application:
+ - ''
+ authorization:
- OAuth
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
code: 403
message: Forbidden
- headers:
- content-type:
+ headers:
+ server:
+ - nginx/1.0.11
+ date:
+ - Thu, 13 Sep 2012 00:54:52 GMT
+ content-type:
- application/json; charset=utf-8
- x-runtime:
- - "628"
- server:
- - WEBrick/1.3.1 (Ruby/1.8.7/2010-04-19)
- date:
- - Wed, 02 Nov 2011 02:35:53 GMT
- content-length:
- - "44"
- cache-control:
+ status:
+ - 403 Forbidden
+ x-runtime:
+ - '0.021289'
+ content-length:
+ - '44'
+ x-ua-compatible:
+ - IE=Edge,chrome=1
+ cache-control:
- no-cache
- body: "{\"error\":\"Missing valid client application\"}"
- http_version: "1.1"
+ body: ! '{"error":"Missing valid client application"}'
+ http_version: '1.1'
View
44 spec/support/cassettes/users/tasks/all.yml
@@ -2,49 +2,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://taskrabbitdev.com/api/v1/users/49720/tasks?
- body:
- headers:
- x-client-application:
- - <API_SECRET>
- authorization:
- - OAuth <USER_WITH_CARD>
- response: !ruby/struct:VCR::Response
- status: !ruby/struct:VCR::ResponseStatus
- code: 200
- message: OK
- headers:
- etag:
- - ! '"81c43af66182714b81997a339b33bbd0"'
- content-type:
- - application/json; charset=utf-8
- x-runtime:
- - '6667'
- server:
- - WEBrick/1.3.1 (Ruby/1.8.7/2011-02-18)
- date:
- - Sat, 17 Mar 2012 23:13:27 GMT
- content-length:
- - '4186'
- cache-control:
- - private, max-age=0, must-revalidate
- body: ! '{"items":[{"city":{"name":"New York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"My
- First Task","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025380,"id":22673,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/my-first-task--47","get":"/api/v1/tasks/22673","delete":"/api/v1/tasks/22673","put":"/api/v1/tasks/22673","authenticated":"http://local.taskrabbit.com/go/2f249e87a04016d741f163fe991468737e367c8e334eb5d5a53a63d741ce0019ba1a9c33366a76cadc06bdcb9259c5549a44"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"},{"city":{"name":"New
- York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"New
- Name","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025387,"id":22674,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/new-name--3","get":"/api/v1/tasks/22674","delete":"/api/v1/tasks/22674","put":"/api/v1/tasks/22674","authenticated":"http://local.taskrabbit.com/go/459b5e05e7a6542891148717ed9cdd4a25fb5d5f71f094c098a93beb25ba26303c4ea5e2c8e01da3743703abbe1da5b46980"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"},{"city":{"name":"New
- York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"My
- First Task","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025394,"id":22675,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/my-first-task--49","get":"/api/v1/tasks/22675","delete":"/api/v1/tasks/22675","put":"/api/v1/tasks/22675","authenticated":"http://local.taskrabbit.com/go/a89862d84f6a3b8b3175c46bc824ba3c4086519395730898237d56ef90ad672e540e62370c6a87b6c6ec2f601c10e2486ba7"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"},{"city":{"name":"New
- York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"My
- First Task","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025970,"id":22679,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/my-first-task--53","get":"/api/v1/tasks/22679","delete":"/api/v1/tasks/22679","put":"/api/v1/tasks/22679","authenticated":"http://local.taskrabbit.com/go/5a5d27db65887f4b787f19c3c32dbfcf59aabd1943575f7b5d9030f9b984573dbbca1e58d2cd4297b6bf0ec7ccaa3e849db9"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"},{"city":{"name":"New
- York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"New
- Name","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025978,"id":22680,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/new-name--4","get":"/api/v1/tasks/22680","delete":"/api/v1/tasks/22680","put":"/api/v1/tasks/22680","authenticated":"http://local.taskrabbit.com/go/78196cf7905ad6c4b1fb0e4df943b284253a8880163ee3675cdf4b06a9b9de63f6b1cc198064ac121d7afce702d81be0fb03"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"},{"city":{"name":"New
- York City","lng":-74.005973,"id":4,"links":{"get":"/api/v1/cities/4"},"lat":40.714353},"name":"My
- First Task","charge_price":20,"named_price":20,"private_runner":false,"complete_by_time":1332093600,"cost_in_cents":0,"state_changed_at":1332025986,"id":22681,"runners":{"items":[]},"links":{"html":"http://local.taskrabbit.com/tasks/my-first-task--55","get":"/api/v1/tasks/22681","delete":"/api/v1/tasks/22681","put":"/api/v1/tasks/22681","authenticated":"http://local.taskrabbit.com/go/aee487c3c205df11defb1eeb83dab50de7f670769edcd82455eae92f776d6e6ef0dd7b1aacbea7c05ede923baf3a1343bcc6"},"state_label":"posted","assign_by_time":1332082800,"state":"opened"}],"links":{"get":"/api/v1/users/49720/tasks","last":"/api/v1/users/49720/tasks?page=1","first":"/api/v1/users/49720/tasks?page=1"}}'
- http_version: '1.1'
-- !ruby/struct:VCR::HTTPInteraction
- request: !ruby/struct:VCR::Request
- method: :get
- uri: https://taskrabbitdev.com:443/api/v1/users/40/tasks?
+ uri: https://taskrabbitdev.com/api/v1/users/40/tasks?include[task][]=errors&include[task][]=links&include[task][]=error&include[task][]=id&include[task][]=name&include[task][]=user&include[task][]=runner&include[task][]=runners&include[task][]=named_price&include[task][]=charge_price&include[task][]=cost_in_cents&include[task][]=number_runners_to_fill&include[task][]=state_label&include[task][]=city_id&include[task][]=city&include[task][]=description&include[task][]=private_description&include[task][]=private_runner&include[task][]=virtual&include[task][]=state&include[task][]=assignment_type&include[task][]=complete_by_time&include[task][]=state_changed_at&include[task][]=assign_by_time&include[task][]=location_visits&include[task][]=offers&include[task][]=other_locations_attributes&include[task][]=uploaded_photos_attributes&include[task][]=uploaded_sounds_attributes
body:
headers:
x-client-application:
View
8 spec/taskrabbit/account_spec.rb
@@ -4,7 +4,7 @@
describe "account properties" do
before :all do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('account/properties', :record => :new_episodes) do
+ VCR.use_cassette('account/properties', :record => :none) do
@user = tr.account
@user.fetch
end
@@ -32,7 +32,7 @@
describe ".account" do
it "should return an error if the user is not passed" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('account/no_user', :record => :new_episodes) do
+ VCR.use_cassette('account/no_user', :record => :none) do
tr_account = nil
expect { tr_account = tr.account }.to_not raise_error
expect { tr_account = tr_account.short_name }.to raise_error(Taskrabbit::Error, 'There must be an authenticated user for this action')
@@ -41,7 +41,7 @@
it "should return the account of the user" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('account/with_user', :record => :new_episodes) do
+ VCR.use_cassette('account/with_user', :record => :none) do
tr_account = nil
expect { tr_account = tr.account }.to_not raise_error
tr_account.short_name.should == 'Bob'
@@ -52,7 +52,7 @@
describe ".tasks" do
it "should fetch the tasks of the user" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('account/tasks', :record => :new_episodes) do
+ VCR.use_cassette('account/tasks', :record => :none) do
tr_account = nil
expect { tr_account = tr.account }.to_not raise_error
account_tasks = tr_account.tasks.all
View
2  spec/taskrabbit/api_spec.rb
@@ -28,7 +28,7 @@
it "should return an error if the client is not set" do
tr = Taskrabbit::Api.new
VCR.use_cassette('errors/404', :record => :new_episodes) do
- expect { tr.tasks.find('something-that-doesnot-exists').name }.to raise_error(Taskrabbit::Error, '404 Not Found')
+ expect { tr.tasks.find('something-that-doesnot-exists').name }.to raise_error(Taskrabbit::Error, 'The requested resource could not be found')
end
end
end
View
6 spec/taskrabbit/city_spec.rb
@@ -6,7 +6,7 @@
before :all do
tr = Taskrabbit::Api.new
- VCR.use_cassette('cities/properties', :record => :new_episodes) do
+ VCR.use_cassette('cities/properties', :record => :none) do
@city = tr.cities.find(3)
@city.fetch
end
@@ -25,7 +25,7 @@
describe "#all" do
it "should fetch all cities" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('cities/all', :record => :new_episodes) do
+ VCR.use_cassette('cities/all', :record => :none) do
cities = nil
expect { cities = tr.cities }.to_not raise_error
cities.should == Taskrabbit::City
@@ -49,7 +49,7 @@
it "should should fetch the city" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('cities/find', :record => :new_episodes) do
+ VCR.use_cassette('cities/find', :record => :none) do
city = nil
expect { city = tr.cities.find(3) }.to_not raise_error
city.id.should == 3
View
2  spec/taskrabbit/location_spec.rb
@@ -6,7 +6,7 @@
before :all do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('locations/properties', :record => :new_episodes) do
+ VCR.use_cassette('locations/properties', :record => :none) do
@location = tr.account.locations.first
end
end
View
4 spec/taskrabbit/offer_spec.rb
@@ -6,7 +6,7 @@
before :all do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/with_offers_properties', :record => :new_episodes) do
+ VCR.use_cassette('tasks/with_offers_properties', :record => :none) do
@tr_task = tr.tasks.find(ENV["TASK_ID"])
@tr_task.fetch
end
@@ -18,6 +18,6 @@
its(:id ) { should == 7 }
its(:charge_price ) { should == 26 }
its(:state ) { should == "sent" }
- its(:runner ) { should be_instance_of(Taskrabbit::User) }
+ its(:runner_id ) { should == 31 }
end
end
View
28 spec/taskrabbit/task_spec.rb
@@ -6,7 +6,7 @@
before :all do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/properties', :record => :new_episodes) do
+ VCR.use_cassette('tasks/properties', :record => :none) do
@tr_task = tr.tasks.find(ENV['TASK_ID'])
@tr_task.fetch
end
@@ -55,7 +55,7 @@
describe "#tasks" do
it "should fetch tasks only once" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/all', :record => :new_episodes) do
+ VCR.use_cassette('tasks/all', :record => :none) do
tr_tasks = nil
expect { tr_tasks = tr.tasks }.to_not raise_error
tr_tasks.first.should be_instance_of(Taskrabbit::Task)
@@ -66,7 +66,7 @@
it "should refetch tasks if passed :reload => true" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/all', :record => :new_episodes) do
+ VCR.use_cassette('tasks/all', :record => :none) do
tr_tasks = nil
expect { tr_tasks = tr.tasks }.to_not raise_error
tr_tasks.first.should be_instance_of(Taskrabbit::Task)
@@ -96,7 +96,7 @@
it "should fetch tasks" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/find', :record => :new_episodes) do
+ VCR.use_cassette('tasks/find', :record => :none) do
tr_task = nil
expect {
tr_task = tr.tasks.find(ENV['TASK_ID'])
@@ -111,7 +111,7 @@
describe "#delete!" do
it "should request DELETE /tasks/#id" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/delete', :record => :new_episodes) do
+ VCR.use_cassette('tasks/delete', :record => :none) do
tr_task = nil
tr_task = tr.tasks.create(valid_params)
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -134,7 +134,7 @@
it "should create a new task if new" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/save', :record => :new_episodes) do
+ VCR.use_cassette('tasks/save', :record => :none) do
tr_task = nil
tr_task = tr.tasks.new(valid_params)
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -147,7 +147,7 @@
it "should update the task if existing" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/update', :record => :new_episodes) do
+ VCR.use_cassette('tasks/update', :record => :none) do
tr_task = tr.tasks.find(tr.tasks.create(valid_params).id)
tr_task.name = "New Name"
tr_task.save.should == true
@@ -160,7 +160,7 @@
context "with valid params" do
it "should return an error if the user is not logged in" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/create/without_user', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/without_user', :record => :none) do
tr_task = nil
expect { tr_task = tr.tasks.create(valid_params) }.to raise_error(Taskrabbit::Error, 'There must be an authenticated user for this action')
tr_task.should be_nil
@@ -173,7 +173,7 @@
context "with valid params" do
it "should return an error if the user is not logged in" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('tasks/create/without_user', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/without_user', :record => :none) do
tr_task = nil
expect { tr_task = tr.tasks.create(valid_params) }.to raise_error(Taskrabbit::Error, 'There must be an authenticated user for this action')
tr_task.should be_nil
@@ -182,7 +182,7 @@
it "should create the task if the user is authenticated but does not have a credit card" do
tr = Taskrabbit::Api.new(TR_USERS[:without_card][:secret])
- VCR.use_cassette('tasks/create/without_credit_card', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/without_credit_card', :record => :none) do
tr_task = tr.tasks.new(valid_params)
tr_task.save.should == false
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -193,7 +193,7 @@
it "should create the task if the user is authenticated and has a credit card" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/create/default', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/default', :record => :none) do
tr_task = nil
expect { tr_task = tr.tasks.create(valid_params) }.to_not raise_error
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -202,7 +202,7 @@
it "should create the task using the account" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/create/using_account', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/using_account', :record => :none) do
tr_task = nil
expect { tr_task = tr.account.tasks.create(valid_params) }.to_not raise_error
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -215,7 +215,7 @@
it "should create the task if the user is authenticated and has a credit card" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/create/with_invalid_params', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/with_invalid_params', :record => :none) do
tr_task = nil
tr_task = tr.tasks.create(invalid_params)
tr_task.should be_instance_of(Taskrabbit::Task)
@@ -228,7 +228,7 @@
it "should post locations" do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('tasks/create/with_location', :record => :new_episodes) do
+ VCR.use_cassette('tasks/create/with_location', :record => :none) do
tr_task = nil
params_with_locations = valid_params.merge({:other_locations_attributes => [
{
View
6 spec/taskrabbit/user_spec.rb
@@ -6,7 +6,7 @@
before :all do
tr = Taskrabbit::Api.new(TR_USERS[:with_card][:secret])
- VCR.use_cassette('users/properties', :record => :new_episodes) do
+ VCR.use_cassette('users/properties', :record => :none) do
@user = tr.users.find(TR_USERS[:with_card][:id])
@user.fetch
end
@@ -34,7 +34,7 @@
describe "#find" do
it "should fetch users" do
tr = Taskrabbit::Api.new
- VCR.use_cassette('users/find', :record => :new_episodes) do
+ VCR.use_cassette('users/find', :record => :none) do
tr_user = nil
expect { tr_user = tr.users.find(TR_USERS[:without_card][:id]) }.to_not raise_error
tr_user.id.should == TR_USERS[:without_card][:id]
@@ -57,7 +57,7 @@
end
it "should fetch tasks with users/#{TR_USERS[:with_card][:id]}/tasks" do
- VCR.use_cassette('users/tasks/all', :record => :new_episodes) do
+ VCR.use_cassette('users/tasks/all', :record => :none) do
tr_tasks = nil
expect { tr_tasks = tr.users.find(TR_USERS[:with_card][:id]).tasks.all }.to_not raise_error
tr_tasks.should be_a(Taskrabbit::Collection)
Please sign in to comment.
Something went wrong with that request. Please try again.