Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

const_get fails on a namespaced object.

  • Loading branch information...
commit 5263f6eb437f474b62da5eefc1f20ea9f714edd2 1 parent 7d80ee1
@aantix authored
View
1  .gitignore
@@ -29,6 +29,7 @@ spec/dummy/tmp/
*.sassc
.rspec
.redcar/
+spec/dummy/log/*.log
.sass-cache
/config/config.yml
/config/database.yml
View
1  Gemfile.lock
@@ -4,6 +4,7 @@ PATH
udd: User Driven Development (0.0.1)
localtunnel
rails (~> 3.2.9)
+ rturk
turkee
GEM
View
2  app/models/udd/test.rb
@@ -1,6 +1,6 @@
module Udd
class Test < ActiveRecord::Base
- attr_accessible :task
+ attr_accessible :task, :url
belongs_to :task, :class_name => "Turkee::TurkeeTask"
end
end
View
6 lib/udd/runner.rb
@@ -12,13 +12,17 @@ def initialize
def run(test)
create_tunnel
- turkee_task = Turkee::TurkeeTask.create_hit(@tunnel['host'], test["title"], test["description"], nil,
+ turkee_task = Turkee::TurkeeTask.create_hit(host, test["title"], test["description"], "Udd::Test".constantize,
NUM_ASSIGNMENTS, test["reward"], LIFETIME, DURATION,
{}, {}, {:form_url => test['url']})
Test.create!(:url => test['url'], :task => turkee_task)
end
+ def host
+ @tunnel['host']
+ end
+
def create_tunnel
@tunnel = LocalTunnel::Tunnel.new(3000, nil)
@tunnel.register_tunnel
View
1  spec/dummy/config/initializers/turkee.rb
@@ -1,6 +1,7 @@
# Go to this page https://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
# to retrieve your AWS/Mechanical Turk access keys.
+require "rturk"
AWSACCESSKEYID = 'XXXXXXXXXXXXXXXXXX'
AWSSECRETACCESSKEY = 'YYYYYYYYYYYYYYYYYYYYYYYYYYYY'
View
453 spec/dummy/log/development.log
@@ -1,453 +0,0 @@
-
-
-Started GET "/udd" for 127.0.0.1 at 2013-01-06 20:25:07 -0800
-Connecting to database specified by database.yml
-
-ActionController::RoutingError (No route matches [GET] "/udd"):
- actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
- railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
- activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
- rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
- rack (1.4.1) lib/rack/runtime.rb:17:in `call'
- activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
- rack (1.4.1) lib/rack/lock.rb:15:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/application.rb:223:in `call'
- rack (1.4.1) lib/rack/content_length.rb:14:in `call'
- railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
- rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-
-
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (16.2ms)
-
-
-Started GET "/udd/tests" for 127.0.0.1 at 2013-01-06 20:35:19 -0800
-Processing by Udd::TestsController#index as HTML
-Completed 500 Internal Server Error in 37ms
-
-ActiveRecord::StatementInvalid (Could not find table 'udd_tests'):
- activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
- activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
- activerecord (3.2.9) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `yield'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `default'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `columns'
- activerecord (3.2.9) lib/active_record/model_schema.rb:237:in `columns_hash'
- activerecord (3.2.9) lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
- activerecord (3.2.9) lib/active_record/relation.rb:170:in `exec_queries'
- activerecord (3.2.9) lib/active_record/relation.rb:160:in `block in to_a'
- activerecord (3.2.9) lib/active_record/explain.rb:33:in `logging_query_plan'
- activerecord (3.2.9) lib/active_record/relation.rb:159:in `to_a'
- activerecord (3.2.9) lib/active_record/relation/finder_methods.rb:159:in `all'
- activerecord (3.2.9) lib/active_record/querying.rb:5:in `all'
- /Users/aantix/dev/udd/app/controllers/udd/tests_controller.rb:8:in `index'
- actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
- actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
- actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
- activesupport (3.2.9) lib/active_support/callbacks.rb:403:in `_run__4336613110229176103__process_action__4062211953816677226__callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
- activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
- actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
- activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
- activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
- actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
- activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
- actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
- actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
- actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
- actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
- actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
- rack (1.4.1) lib/rack/etag.rb:23:in `call'
- rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
- rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
- rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
- activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
- activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__3358206510148253832__call__3694827474939097473__callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
- activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
- railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
- activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
- rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
- rack (1.4.1) lib/rack/runtime.rb:17:in `call'
- activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
- rack (1.4.1) lib/rack/lock.rb:15:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/application.rb:223:in `call'
- rack (1.4.1) lib/rack/content_length.rb:14:in `call'
- railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
- rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-
-
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (8.1ms)
-Connecting to database specified by database.yml
-  (0.1ms) select sqlite_version(*)
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (3.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
-
-
-Started GET "/udd/tests" for 127.0.0.1 at 2013-01-06 20:35:51 -0800
-Connecting to database specified by database.yml
-Processing by Udd::TestsController#index as HTML
-Completed 500 Internal Server Error in 31ms
-
-ActiveRecord::StatementInvalid (Could not find table 'udd_tests'):
- activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:472:in `table_structure'
- activerecord (3.2.9) lib/active_record/connection_adapters/sqlite_adapter.rb:346:in `columns'
- activerecord (3.2.9) lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `yield'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `default'
- activerecord (3.2.9) lib/active_record/model_schema.rb:228:in `columns'
- activerecord (3.2.9) lib/active_record/model_schema.rb:237:in `columns_hash'
- activerecord (3.2.9) lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
- activerecord (3.2.9) lib/active_record/relation.rb:170:in `exec_queries'
- activerecord (3.2.9) lib/active_record/relation.rb:160:in `block in to_a'
- activerecord (3.2.9) lib/active_record/explain.rb:33:in `logging_query_plan'
- activerecord (3.2.9) lib/active_record/relation.rb:159:in `to_a'
- activerecord (3.2.9) lib/active_record/relation/finder_methods.rb:159:in `all'
- activerecord (3.2.9) lib/active_record/querying.rb:5:in `all'
- /Users/aantix/dev/udd/app/controllers/udd/tests_controller.rb:8:in `index'
- actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
- actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
- actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
- activesupport (3.2.9) lib/active_support/callbacks.rb:403:in `_run__3178591506634750341__process_action__1931036344024188424__callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
- activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
- actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
- activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
- activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
- activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
- actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
- actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
- activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
- actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
- actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
- actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
- actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
- actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:36:in `call'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
- rack (1.4.1) lib/rack/etag.rb:23:in `call'
- rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
- rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
- rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
- activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
- activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__3407556655335442329__call__1919989229441513188__callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
- activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
- railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
- activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
- rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
- rack (1.4.1) lib/rack/runtime.rb:17:in `call'
- activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
- rack (1.4.1) lib/rack/lock.rb:15:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/application.rb:223:in `call'
- rack (1.4.1) lib/rack/content_length.rb:14:in `call'
- railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
- rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-
-
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.7ms)
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (7.7ms)
-Connecting to database specified by database.yml
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
-Migrating to CreateUddTests (20130107044222)
-  (0.0ms) select sqlite_version(*)
-  (0.0ms) begin transaction
-  (0.5ms) CREATE TABLE "udd_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "turkee_task_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107044222')
-  (2.3ms) commit transaction
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
-
-
-Started GET "/udd/tests" for 127.0.0.1 at 2013-01-06 20:46:05 -0800
-Connecting to database specified by database.yml
-
-ActionController::RoutingError (uninitialized constant Udd::Test::Turkee):
- /Users/aantix/dev/udd/app/models/udd/test.rb:3:in `<class:Test>'
- /Users/aantix/dev/udd/app/models/udd/test.rb:2:in `<module:Udd>'
- /Users/aantix/dev/udd/app/models/udd/test.rb:1:in `<top (required)>'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:230:in `block in constantize'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:229:in `each'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:229:in `constantize'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:260:in `safe_constantize'
- activesupport (3.2.9) lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
- actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
- actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
- actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
- actionpack (3.2.9) lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
- actionpack (3.2.9) lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
- /Users/aantix/dev/udd/app/controllers/udd/tests_controller.rb:4:in `<module:Udd>'
- /Users/aantix/dev/udd/app/controllers/udd/tests_controller.rb:3:in `<top (required)>'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:230:in `block in constantize'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:229:in `each'
- activesupport (3.2.9) lib/active_support/inflector/methods.rb:229:in `constantize'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:54:in `controller'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:32:in `call'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
- journey (1.0.4) lib/journey/router.rb:68:in `block in call'
- journey (1.0.4) lib/journey/router.rb:56:in `each'
- journey (1.0.4) lib/journey/router.rb:56:in `call'
- actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
- rack (1.4.1) lib/rack/etag.rb:23:in `call'
- rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
- rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
- rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
- activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
- activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__2691182717256696683__call__4579224102482770228__callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
- activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
- activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
- actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
- railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
- activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
- rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
- rack (1.4.1) lib/rack/runtime.rb:17:in `call'
- activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
- rack (1.4.1) lib/rack/lock.rb:15:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/application.rb:223:in `call'
- rack (1.4.1) lib/rack/content_length.rb:14:in `call'
- railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
- rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-
-
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.4ms)
-
-
-Started GET "/udd/tests" for 127.0.0.1 at 2013-01-06 20:49:47 -0800
-Connecting to database specified by database.yml
-Processing by Udd::TestsController#index as HTML
- Udd::Test Load (0.1ms) SELECT "udd_tests".* FROM "udd_tests" 
- Rendered /Users/aantix/dev/udd/app/views/udd/tests/index.html.erb within layouts/udd/application (2.7ms)
-Compiled udd/application.css (0ms) (pid 39461)
-Compiled jquery.js (2ms) (pid 39461)
-Compiled jquery_ujs.js (0ms) (pid 39461)
-Compiled udd/application.js (38ms) (pid 39461)
-Completed 200 OK in 129ms (Views: 97.1ms | ActiveRecord: 1.7ms)
-
-
-Started GET "/assets/udd/application.css?body=1" for 127.0.0.1 at 2013-01-06 20:49:48 -0800
-Served asset /udd/application.css - 200 OK (3ms)
-
-
-Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-06 20:49:48 -0800
-Served asset /jquery.js - 304 Not Modified (3ms)
-
-
-Started GET "/assets/udd/application.js?body=1" for 127.0.0.1 at 2013-01-06 20:49:48 -0800
-Served asset /udd/application.js - 200 OK (3ms)
-
-
-Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-06 20:49:48 -0800
-Served asset /jquery_ujs.js - 304 Not Modified (2ms)
-Connecting to database specified by database.yml
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
-Migrating to CreateUddTests (20130107044222)
-Migrating to CreateTurkeeTasks (20130107061956)
-  (0.0ms) select sqlite_version(*)
-  (0.0ms) begin transaction
-  (0.4ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061956')
-  (1.5ms) commit transaction
-Migrating to CreateTurkeeImportedAssignments (20130107061957)
-  (0.0ms) begin transaction
-  (0.3ms) CREATE TABLE "turkee_imported_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "assignment_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.4ms) CREATE UNIQUE INDEX "index_turkee_imported_assignments_on_assignment_id" ON "turkee_imported_assignments" ("assignment_id")
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061957')
-  (1.1ms) commit transaction
-Migrating to AddCompletedTasks (20130107061958)
-  (0.0ms) begin transaction
-  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061958')
-  (0.9ms) commit transaction
-Migrating to AddImportedAssignmentDetails (20130107061959)
-  (0.0ms) begin transaction
-  (0.4ms) ALTER TABLE "turkee_imported_assignments" ADD "turkee_task_id" integer
-  (0.2ms) CREATE INDEX "index_turkee_imported_assignments_on_turkee_task_id" ON "turkee_imported_assignments" ("turkee_task_id")
-  (0.2ms) ALTER TABLE "turkee_imported_assignments" ADD "worker_id" varchar(255)
-  (0.1ms) ALTER TABLE "turkee_imported_assignments" ADD "result_id" integer
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061959')
-  (1.1ms) commit transaction
-Migrating to AddHitDuration (20130107062000)
-  (0.0ms) begin transaction
-  (0.3ms) ALTER TABLE "turkee_tasks" ADD "hit_duration" integer
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107062000')
-  (0.7ms) commit transaction
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
-
-
-Started GET "/" for 127.0.0.1 at 2013-01-06 23:13:47 -0800
-
-ActionController::RoutingError (No route matches [GET] "/"):
- actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
- railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
- activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
- railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
- rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
- rack (1.4.1) lib/rack/runtime.rb:17:in `call'
- activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
- rack (1.4.1) lib/rack/lock.rb:15:in `call'
- actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
- railties (3.2.9) lib/rails/engine.rb:479:in `call'
- railties (3.2.9) lib/rails/application.rb:223:in `call'
- rack (1.4.1) lib/rack/content_length.rb:14:in `call'
- railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
- rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
- /Users/aantix/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
-
-
- Rendered /Users/aantix/.rvm/gems/ruby-1.9.3-p327@udd/gems/actionpack-3.2.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
-Connecting to database specified by database.yml
-  (0.1ms) select sqlite_version(*)
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
-Migrating to CreateUddTests (20130107044222)
-  (0.0ms) begin transaction
-  (0.3ms) CREATE TABLE "udd_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "turkee_task_id" integer, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107044222')
-  (1.1ms) commit transaction
-Migrating to CreateTurkeeTasks (20130107061956)
-  (0.0ms) begin transaction
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061956')
-  (1.3ms) commit transaction
-Migrating to CreateTurkeeImportedAssignments (20130107061957)
-  (0.0ms) begin transaction
-  (0.3ms) CREATE TABLE "turkee_imported_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "assignment_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
-  (0.3ms) CREATE UNIQUE INDEX "index_turkee_imported_assignments_on_assignment_id" ON "turkee_imported_assignments" ("assignment_id")
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061957')
-  (1.4ms) commit transaction
-Migrating to AddCompletedTasks (20130107061958)
-  (0.0ms) begin transaction
-  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061958')
-  (0.8ms) commit transaction
-Migrating to AddImportedAssignmentDetails (20130107061959)
-  (0.0ms) begin transaction
-  (0.3ms) ALTER TABLE "turkee_imported_assignments" ADD "turkee_task_id" integer
-  (0.2ms) CREATE INDEX "index_turkee_imported_assignments_on_turkee_task_id" ON "turkee_imported_assignments" ("turkee_task_id")
-  (0.2ms) ALTER TABLE "turkee_imported_assignments" ADD "worker_id" varchar(255)
-  (0.1ms) ALTER TABLE "turkee_imported_assignments" ADD "result_id" integer
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107061959')
-  (1.0ms) commit transaction
-Migrating to AddHitDuration (20130107062000)
-  (0.0ms) begin transaction
-  (0.3ms) ALTER TABLE "turkee_tasks" ADD "hit_duration" integer
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130107062000')
-  (0.9ms) commit transaction
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
View
96 spec/dummy/log/test.log
@@ -1,96 +0,0 @@
-Connecting to database specified by database.yml
-  (2.1ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.5ms) select sqlite_version(*)
-  (0.7ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.4ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (2.3ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.5ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.6ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
-Connecting to database specified by database.yml
-  (1.5ms) select sqlite_version(*)
-  (0.3ms) CREATE TABLE "turkee_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "hit_url" varchar(255), "sandbox" boolean, "task_type" varchar(255), "hit_title" text, "hit_description" text, "hit_id" varchar(255), "hit_reward" decimal(10,2), "hit_num_assignments" integer, "hit_lifetime" integer, "form_url" varchar(255), "completed_assignments" integer DEFAULT 0, "complete" boolean, "expired" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "turkee_flow_id" integer, "hit_duration" integer)
-  (0.1ms) CREATE TABLE "surveys" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "answer" varchar(255)) 
-  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
-  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
-  (0.0ms) SELECT version FROM "schema_migrations"
-  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
View
3  spec/lib/udd/runner_spec.rb
@@ -10,7 +10,8 @@
end
it "creates the appropriate HIT (turkee task) and Test" do
- Turkee::TurkeeTask.expects(:create_hit).once
+ #Turkee::TurkeeTask.expects(:create_hit).once
+ @creator.stubs(:host).returns("http://abc123.localtunnel.io")
@creator.expects(:create_tunnel).once
@creator.run(@test)
View
29 spec/spec_helper.rb
@@ -8,37 +8,8 @@
require 'active_record'
require 'rake'
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
-ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
-ActiveRecord::Schema.define(:version => 1) do
- create_table :turkee_tasks do |t|
- t.string "hit_url"
- t.boolean "sandbox"
- t.string "task_type"
- t.text "hit_title"
- t.text "hit_description"
- t.string "hit_id"
- t.decimal "hit_reward", :precision => 10, :scale => 2
- t.integer "hit_num_assignments"
- t.integer "hit_lifetime"
- t.string "form_url"
- t.integer "completed_assignments", :default => 0
- t.boolean "complete"
- t.boolean "expired"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.integer "turkee_flow_id"
- t.integer "hit_duration"
- end
-
- create_table :surveys do |t|
- t.string :answer
- end
-end
-
-
Spork.prefork do
# Loading more in this block will cause your tests to run faster. However,
# if you change any configuration or code from libraries loaded here, you'll
View
1  udd.gemspec
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency "rails", "~> 3.2.9"
s.add_dependency "turkee"
+ s.add_dependency "rturk"
s.add_dependency "localtunnel"
# s.add_dependency "jquery-rails"
Please sign in to comment.
Something went wrong with that request. Please try again.