Skip to content

Instantly share code, notes, and snippets.

@DanBradbury
Created August 27, 2014 22:26
Show Gist options
  • Save DanBradbury/0492f017bcea413685d1 to your computer and use it in GitHub Desktop.
Save DanBradbury/0492f017bcea413685d1 to your computer and use it in GitHub Desktop.
"arg = \"rr_dev-pc_TECH-337_gemify_models\""
"arg = \"rr_test-pc_TECH-337_gemify_models-default\""
"arg = \"rr_test-pc_TECH-337_gemify_models-sample_data\""
"arg = \"rr_test-pc_TECH-337_gemify_models-sample_data\""
"arg = \"rr_dev-pc_TECH-337_gemify_models\""
"arg = \"rr_test-pc_TECH-337_gemify_models-default\""
"arg = \"rr_test-pc_TECH-337_gemify_models-sample_data\""
Loaded suite organization_membership_test
Started
Error loading Marshal file /Users/danielbradbury/Documents/Invoca/web/test/fixturesdefault.marshal: No such file or directory @ rb_sysopen - /Users/danielbradbury/Documents/Invoca/web/test/fixturesdefault.marshal
-------
Error:
test: A user with two organization memberships should allow new memberships. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483380 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should be able to set a daily notification for networks. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483340 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should be able to set performance_notification_frequency. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483300 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should be deleted when all memberships are deleted. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483260 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should not allow duplicate memberships. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483200 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should not be able to set a daily notification frequency for non-networks. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483160 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should return all the ids across auth realms. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483120 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should return all the ids. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483080 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: A user with two organization memberships should switch default organization if the default membership is deleted. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708483020 [ivars hidden...]>
organization_membership_test.rb:34:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: Organization membership in investor network should return true when asked if user is an investor. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708482980 [ivars hidden...]>
organization_membership_test.rb:140:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Failure:
test: OrganizationMembership should have many bulk_reports dependent => nullify. (OrganizationMembershipTest)
[shoulda-context (1.2.1) lib/shoulda/context/assertions.rb:89:in `safe_assert_block'
shoulda-context (1.2.1) lib/shoulda/context/assertions.rb:62:in `assert_accepts'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:344:in `block in should'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run']:
Expected OrganizationMembership to have a has_many association called bulk_reports (BulkReport does not exist)
-------
Error:
test: OrganizationMembership should returns organization_matches?. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482780 [ivars hidden...]>
organization_membership_test.rb:493:in `block in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_agree_to_call_fees? for advertisers should be true super users only. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482720 [ivars hidden...]>
organization_membership_test.rb:634:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_agree_to_call_fees? for networks should never be true. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482680 [ivars hidden...]>
organization_membership_test.rb:634:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should allow managers and supers of the organization. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482640 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should allow members of the organization. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482600 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should allow network supers and managers of the same network. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482540 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should not allow advertiser supers. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482460 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should not allow network members even in same network. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482400 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_edit_profile? should not allow network supers and managers of a different network. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482360 [ivars hidden...]>
organization_membership_test.rb:429:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_generate_calls? should be false for demo network members. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482320 [ivars hidden...]>
organization_membership_test.rb:257:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_generate_calls? should be false for non-network members. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482220 [ivars hidden...]>
organization_membership_test.rb:257:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_generate_calls? should be true for demo network super users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708482120 [ivars hidden...]>
organization_membership_test.rb:257:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_go_live? should be true for network users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481960 [ivars hidden...]>
organization_membership_test.rb:293:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_go_live? should be true when the advertiser is allowed. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481900 [ivars hidden...]>
organization_membership_test.rb:300:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? for networks WITHOUT authentication_url_default should be false for members. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481840 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? for networks WITHOUT authentication_url_default should be true for managers and super users regardless of organization type. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481760 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? for networks with authentication_url_default should be false for advertisers with networks that do not use sso for advertisers. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481700 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? for networks with authentication_url_default should be false for managers and super users within other organization types. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481620 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? for networks with authentication_url_default should be true for network users within a netwok. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481540 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? should allow managers and supers to invite users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481500 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_invite_users? should not allow members to invite users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481420 [ivars hidden...]>
organization_membership_test.rb:374:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_make_fees_visible? should only true for network users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481340 [ivars hidden...]>
organization_membership_test.rb:311:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: allowed_to_restrict_go_live? should only be true for network super users when network.restrict_go_live. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481260 [ivars hidden...]>
organization_membership_test.rb:276:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: build and find by API key should detect uniqueness. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481140 [ivars hidden...]>
organization_membership_test.rb:466:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: build and find by API key should generate key for membership. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481080 [ivars hidden...]>
organization_membership_test.rb:466:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: build and find by API key should return nil when the api key is not found. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708481020 [ivars hidden...]>
organization_membership_test.rb:466:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: login! should raise when the key is not found. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480980 [ivars hidden...]>
organization_membership_test.rb:504:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: login! should raise when the username does not match. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480940 [ivars hidden...]>
organization_membership_test.rb:504:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: login! should succeed for any of the usernames. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480900 [ivars hidden...]>
organization_membership_test.rb:504:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: network_managed? should check if org is advertiser and network managed for editing ids. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480860 [ivars hidden...]>
organization_membership_test.rb:346:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: network_managed? should check if org is advertiser and network managed. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480800 [ivars hidden...]>
organization_membership_test.rb:346:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: network_managed? should not allow managed advertisers to clone campaigns. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480760 [ivars hidden...]>
organization_membership_test.rb:346:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: notification settings should default notify_on_call_activities to false. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708480700 [ivars hidden...]>
organization_membership_test.rb:679:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: notification settings should default some attributes to false if the organization is a network. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708480500 [ivars hidden...]>
organization_membership_test.rb:679:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: optout access token should expire the optout access token and return nil after 30 days. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480460 [ivars hidden...]>
organization_membership_test.rb:115:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: optout access token should generate an optout token. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480420 [ivars hidden...]>
organization_membership_test.rb:115:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: optout access token should return nil when the optout access token is not found. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480380 [ivars hidden...]>
organization_membership_test.rb:115:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods read only role for networks should allow impersonation if set at network level. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480300 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:425:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods read only role for networks should network access rights. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480260 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:425:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods read only role for networks should not delegate to organization if not readonly. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480220 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:425:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods read only role should be able to change a membership to read only. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480180 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods should delegate to organization if not readonly. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480140 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: readonly access methods should network access rights. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480100 [ivars hidden...]>
organization_membership_test.rb:580:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: restricted? for Observer should skip org_profile_empty. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708480020 [ivars hidden...]>
organization_membership_test.rb:204:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: restricted? for Reporting should skip org_profile_empty. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708479980 [ivars hidden...]>
organization_membership_test.rb:204:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: restricted? should delegate to the organization. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708479940 [ivars hidden...]>
organization_membership_test.rb:204:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: restricted? should return tos if not agreed to tos. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708479900 [ivars hidden...]>
organization_membership_test.rb:204:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: roles should respond appropriately to observer?. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708479840 [ivars hidden...]>
organization_membership_test.rb:151:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: roles should respond appropriately to reporting?. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708479800 [ivars hidden...]>
organization_membership_test.rb:151:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: save_invitation_role should Return false if the user is not allowed to invite users. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478460 [ivars hidden...]>
organization_membership_test.rb:325:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: save_invitation_role should downcast a manager's invitation from super to manager. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478380 [ivars hidden...]>
organization_membership_test.rb:325:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: save_invitation_role should not downcast a supers's invitation from super to manager. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478340 [ivars hidden...]>
organization_membership_test.rb:325:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: tos_agreed_date should not override existing date. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478300 [ivars hidden...]>
organization_membership_test.rb:169:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: tos_agreed_date should not set on save if param is not set. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478260 [ivars hidden...]>
organization_membership_test.rb:169:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: tos_agreed_date should set on save if param is set. (OrganizationMembershipTest):
NoMethodError: undefined method `organization_memberships' for #<OrganizationMembershipTest:0x70202708478220 [ivars hidden...]>
organization_membership_test.rb:169:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: user membership version set_default! should clear the cached default organization on user. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708478180 [ivars hidden...]>
organization_membership_test.rb:529:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: user membership version set_default! should update membership version on organization_membership and user. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708478120 [ivars hidden...]>
organization_membership_test.rb:529:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:426:in `run_all_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:430:in `run_parent_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:402:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: user membership version should be updated on add. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708478080 [ivars hidden...]>
organization_membership_test.rb:529:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: user membership version should be updated on delete. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708478020 [ivars hidden...]>
organization_membership_test.rb:529:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: user membership version should be updated on role change. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708477980 [ivars hidden...]>
organization_membership_test.rb:529:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: visibility should not allow API if hidden. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708477920 [ivars hidden...]>
organization_membership_test.rb:666:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: visibility should only return visible memberships. (OrganizationMembershipTest):
NoMethodError: undefined method `users' for #<OrganizationMembershipTest:0x70202708477880 [ivars hidden...]>
organization_membership_test.rb:655:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Error:
test: sample data classic report predicate should be false for RR direct advertisers. (OrganizationMembershipTest):
NoMethodError: undefined method `nickname' for nil:NilClass
app/models/advertiser.rb:189:in `ring_direct_advertiser?'
app/models/organization_membership.rb:336:in `classic_reports_enabled?'
organization_membership_test.rb:747:in `block (3 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
-------
Failure:
test: sample data reporting only role should be able to change a membership to reporting. (OrganizationMembershipTest)
[organization_membership_test.rb:770:in `block (3 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:436:in `block in run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `each'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:434:in `run_current_setup_blocks'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:411:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run']:
Could not find CNC Tax network.
-------
Error:
test: sample data should destroy oauth tokens when destroyed. (OrganizationMembershipTest):
NameError: uninitialized constant OrganizationMembership::BulkReport
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/inheritance.rb:111:in `compute_type'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/reflection.rb:172:in `klass'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/association.rb:118:in `klass'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/association.rb:171:in `find_target?'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/collection_association.rb:334:in `load_target'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/collection_association.rb:157:in `delete_all'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/collection_proxy.rb:46:in `delete_all'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/associations/builder/has_many.rb:56:in `block in define_nullify_dependency_method'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:407:in `_run__278981568894833306__destroy__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_destroy_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/callbacks.rb:254:in `destroy'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/transactions.rb:254:in `block in destroy'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/transactions.rb:208:in `transaction'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activerecord/lib/active_record/transactions.rb:254:in `destroy'
app/models/application_model.rb:233:in `destroy'
organization_membership_test.rb:728:in `block (2 levels) in <class:OrganizationMembershipTest>'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `instance_exec'
shoulda-context (1.2.1) lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `block in run'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:458:in `_run__1102636112189574123__setup__2112578914924609416__callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/danielbradbury/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-f1e6f5e03393/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
/Users/danielbradbury/Documents/Invoca/temp/test_helper.rb:97:in `run'
Finished in 1 seconds.
96 tests, 52 assertions, 2 failures, 74 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment