Skip to content

Instantly share code, notes, and snippets.

@carlosbrando
Created May 21, 2009 18:49
Show Gist options
  • Select an option

  • Save carlosbrando/115633 to your computer and use it in GitHub Desktop.

Select an option

Save carlosbrando/115633 to your computer and use it in GitHub Desktop.
1)
ArgumentError in 'Admin::ProductOptionTypesController GET index should == [#<Discount id: 14, value: 344, on_percentage: true, active: true, discountable_id: 7, discountable_type: "Product", starting_on: "2009-05-20 18:47:12", ending_on: "2009-05-22 18:47:12", created_at: "2009-05-21 18:47:12", updated_at: "2009-05-21 18:47:12">]'
Cannot yield from a Proc type filter. The Proc must take two arguments and execute #call on the second argument.
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/callbacks.rb:168:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:225:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:629:in `run_before_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:615:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:10:in `realtime'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/flash.rb:141:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/base.rb:523:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/filters.rb:606:in `sass_old_process'
/Library/Ruby/Gems/1.8/gems/haml-2.0.9/lib/sass/plugin/rails.rb:19:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:559:in `process_with_test'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:439:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/test_process.rb:390:in `get'
./spec/controllers/admin/product_option_types_controller_spec.rb:23:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment