Skip to content

Instantly share code, notes, and snippets.

@amw
Created March 3, 2011 14:21
Show Gist options
  • Save amw/852835 to your computer and use it in GitHub Desktop.
Save amw/852835 to your computer and use it in GitHub Desktop.
spree[fix-order-scopes]$rake spec
(in /Users/amw/Projects/spree)
########################### api #########################
rm api/Gemfile*
cd api && /opt/local/bin/rake test_app
(in /Users/amw/Projects/spree/api)
run rake spree_core:install from "./test_app"
(in /Users/amw/Projects/spree/api/spec/test_app)
run rake spree_auth:install from "./test_app"
(in /Users/amw/Projects/spree/api/spec/test_app)
run rake spree_api:install from "./test_app"
(in /Users/amw/Projects/spree/api/spec/test_app)
cd api && /opt/local/bin/rake spec
(in /Users/amw/Projects/spree/api)
/opt/local/bin/ruby -S bundle exec rspec ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/api/spree_base_controller_spec.rb ./spec/models/user_spec.rb
FF.........
Failures:
1) Admin::UsersController#generate_api_key should generate a 40 char key
Failure/Error: put :generate_api_key, {:id => 1}
Mock "User_1002" received unexpected message :to_ary with (no args)
# ./app/controllers/admin/users_controller_decorator.rb:9:in `generate_api_key'
# ./spec/controllers/admin/users_controller_spec.rb:15:in `block (3 levels) in <top (required)>'
2) Admin::UsersController#clear_api_key should clear the key
Failure/Error: put :clear_api_key, {:id => 1}
Mock "User_1004" received unexpected message :to_ary with (no args)
# ./app/controllers/admin/users_controller_decorator.rb:16:in `clear_api_key'
# ./spec/controllers/admin/users_controller_spec.rb:23:in `block (3 levels) in <top (required)>'
Finished in 0.29892 seconds
11 examples, 2 failures
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/api/spree_base_controller_spec.rb ./spec/models/user_spec.rb failed
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:139:in `rescue in block (2 levels) in initialize'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:135:in `block (2 levels) in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1110:in `verbose'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:131:in `block in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `call'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `block in execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in `mon_synchronize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:581:in `invoke'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2041:in `invoke_task'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2058:in `standard_exception_handling'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2013:in `top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1992:in `run'
/opt/local/bin/rake:31:in `<main>'
########################### auth #########################
rm auth/Gemfile*
cd auth && /opt/local/bin/rake test_app
(in /Users/amw/Projects/spree/auth)
run rake spree_auth:install from "./test_app"
(in /Users/amw/Projects/spree/auth/spec/test_app)
run rake spree_core:install from "./test_app"
(in /Users/amw/Projects/spree/auth/spec/test_app)
cd auth && /opt/local/bin/rake spec
(in /Users/amw/Projects/spree/auth)
/opt/local/bin/ruby -S bundle exec rspec ./spec/controllers/admin_base_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/controllers/user_sessions_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/lib/token_resource_spec.rb ./spec/models/ability_spec.rb ./spec/models/order_spec.rb ./spec/models/user_spec.rb
..................................FFFF.....................................................F...FF
Failures:
1) UsersController#create should create a new user
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:7:in `block (2 levels) in <top (required)>'
2) UsersController#create when an order exists in the session should assign the user to the order
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:7:in `block (2 levels) in <top (required)>'
3) UsersController#update when updating own account should perform update
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:7:in `block (2 levels) in <top (required)>'
4) UsersController#update when attempting to update other account should not allow update
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/controllers/users_controller_spec.rb:7:in `block (2 levels) in <top (required)>'
5) User#create should not be anonymous
Failure/Error: let(:user) { Factory.build(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/user_spec.rb:7:in `block (3 levels) in <top (required)>'
# ./spec/models/user_spec.rb:10:in `block (3 levels) in <top (required)>'
6) User#save when there are no admin users should assign the user an admin role
Failure/Error: let(:user) { Factory.build(:user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/user_spec.rb:31:in `block (3 levels) in <top (required)>'
# ./spec/models/user_spec.rb:35:in `block (4 levels) in <top (required)>'
7) User#save when there are existing admin users should not assign the user an admin role
Failure/Error: before { Factory(:admin_user) }
NameError:
uninitialized constant Faker
# /Users/amw/Projects/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/user_spec.rb:40:in `block (4 levels) in <top (required)>'
Finished in 1.73 seconds
97 examples, 7 failures
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/admin_base_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/controllers/user_sessions_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/lib/token_resource_spec.rb ./spec/models/ability_spec.rb ./spec/models/order_spec.rb ./spec/models/user_spec.rb failed
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:139:in `rescue in block (2 levels) in initialize'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:135:in `block (2 levels) in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1110:in `verbose'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:131:in `block in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `call'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `block in execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in `mon_synchronize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:581:in `invoke'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2041:in `invoke_task'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2058:in `standard_exception_handling'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2013:in `top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1992:in `run'
/opt/local/bin/rake:31:in `<main>'
########################### core #########################
rm core/Gemfile*
rm: core/Gemfile*: No such file or directory
cd core && /opt/local/bin/rake test_app
(in /Users/amw/Projects/spree/core)
run rake spree_core:install from "./test_app"
(in /Users/amw/Projects/spree/core/spec/test_app)
cd core && /opt/local/bin/rake spec
(in /Users/amw/Projects/spree/core)
/opt/local/bin/ruby -S bundle exec rspec ./spec/controllers/admin/mail_methods_controller_spec.rb ./spec/controllers/admin/orders_controller_spec.rb ./spec/controllers/admin/payments_controller_spec.rb ./spec/controllers/admin/products_controller_spec.rb ./spec/controllers/admin/shipments_controller_spec.rb ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/content_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/calculated_adjustments_spec.rb ./spec/lib/ext_spec.rb ./spec/lib/mail_interceptor_spec.rb ./spec/lib/mail_settings_spec.rb ./spec/models/address_spec.rb ./spec/models/adjustment_spec.rb ./spec/models/calculator/flat_percent_item_total_spec.rb ./spec/models/configuration_spec.rb ./spec/models/country_spec.rb ./spec/models/creditcard_spec.rb ./spec/models/gateway/authorize_net_cim_spec.rb ./spec/models/gateway/authorize_net_spec.rb ./spec/models/gateway/braintree_spec.rb ./spec/models/inventory_unit_spec.rb ./spec/models/line_item_spec.rb ./spec/models/mail_method_spec.rb ./spec/models/order_spec.rb ./spec/models/payment_method_spec.rb ./spec/models/payment_spec.rb ./spec/models/product_group_spec.rb ./spec/models/product_option_type_spec.rb ./spec/models/product_property_spec.rb ./spec/models/product_scope_spec.rb ./spec/models/product_spec.rb ./spec/models/return_authorization_spec.rb ./spec/models/shipment_spec.rb ./spec/models/shipping_category_spec.rb ./spec/models/shipping_method_spec.rb ./spec/models/state_spec.rb ./spec/models/tax_category_spec.rb ./spec/models/tax_rate_spec.rb ./spec/models/taxon_spec.rb ./spec/models/tracer_spec.rb ./spec/models/user_spec.rb ./spec/models/variant_spec.rb
....FF..................................*...............**.F.**........FFFFFFFFFF..............*FF.........FFFFF......................................................................FFFFFFFFFFF.....................F...........F..FFFF..*...............*..................F........................**.......FFFFF..........F.FF.FFFFFFFFFFFFFFF...FFFFF.............F..............F......F.FFFFFFF.FFFFFFF........FF.............
Pending:
OrdersController#empty should redirect back to cart
# Not Yet Implemented
# ./spec/controllers/orders_controller_spec.rb:70
OrderMailer#deliver when intercept_email is provided should strip the bcc recipients
# Not Yet Implemented
# ./spec/lib/mail_interceptor_spec.rb:41
OrderMailer#deliver when intercept_email is provided should strip the cc recipients
# Not Yet Implemented
# ./spec/lib/mail_interceptor_spec.rb:42
OrderMailer#deliver when intercept_mode is not provided should bcc the address specified in the preference
# Not Yet Implemented
# ./spec/lib/mail_interceptor_spec.rb:65
OrderMailer#deliver when intercept_mode is not provided should not change the recipient
# Not Yet Implemented
# ./spec/lib/mail_interceptor_spec.rb:66
Adjustment should accept a negative amount
# Not Yet Implemented
# ./spec/models/adjustment_spec.rb:22
Order#save should destroy any line_items with zero quantity
# Not Yet Implemented
# ./spec/models/order_spec.rb:78
Order#finalize! should change the shipment state to ready if order is paid
# Not Yet Implemented
# ./spec/models/order_spec.rb:193
Order#cancel should restock inventory
# Not Yet Implemented
# ./spec/models/order_spec.rb:528
Order#cancel should change shipment status (unless shipped)
# Not Yet Implemented
# ./spec/models/order_spec.rb:529
Failures:
1) Admin::PaymentsController#fire should fire the requested event on the payment
Failure/Error: put :fire, {:order_id => "123", :id => "456", :e => "foo"}
Mock "Order_1007" received unexpected message :to_ary with (no args)
# ./app/controllers/admin/payments_controller.rb:48:in `fire'
# ./spec/controllers/admin/payments_controller_spec.rb:19:in `block (3 levels) in <top (required)>'
2) Admin::PaymentsController#fire should respond with a flash message if the event cannot be fired
Failure/Error: put :fire, {:order_id => "123", :id => "456", :e => "foo"}
Mock "Order_1010" received unexpected message :to_ary with (no args)
# ./app/controllers/admin/payments_controller.rb:48:in `fire'
# ./spec/controllers/admin/payments_controller_spec.rb:23:in `block (3 levels) in <top (required)>'
3) OrderMailer#deliver when intercept_email is provided should modify the subject to include the original email
Failure/Error: @email.subject.starts_with?("[customer@example.com]").should be_true
expected false to be true
# ./spec/lib/mail_interceptor_spec.rb:53:in `block (4 levels) in <top (required)>'
4) Address validations
Failure/Error: it { should belong_to(:country) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x0000010603def8>
# ./spec/models/address_spec.rb:5:in `block (3 levels) in <top (required)>'
5) Address validations
Failure/Error: it { should belong_to(:state) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x0000010603a2d0>
# ./spec/models/address_spec.rb:6:in `block (3 levels) in <top (required)>'
6) Address validations
Failure/Error: it { should have_many(:shipments) }
NoMethodError:
undefined method `has_many?' for #<Address:0x00000106035618>
# ./spec/models/address_spec.rb:7:in `block (3 levels) in <top (required)>'
7) Address validations
Failure/Error: it { should validate_presence_of(:firstname) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f5f500>
# ./spec/models/address_spec.rb:8:in `block (3 levels) in <top (required)>'
8) Address validations
Failure/Error: it { should validate_presence_of(:lastname) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f5c940>
# ./spec/models/address_spec.rb:9:in `block (3 levels) in <top (required)>'
9) Address validations
Failure/Error: it { should validate_presence_of(:address1) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f58b60>
# ./spec/models/address_spec.rb:10:in `block (3 levels) in <top (required)>'
10) Address validations
Failure/Error: it { should validate_presence_of(:city) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f54e20>
# ./spec/models/address_spec.rb:11:in `block (3 levels) in <top (required)>'
11) Address validations
Failure/Error: it { should validate_presence_of(:zipcode) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f51838>
# ./spec/models/address_spec.rb:12:in `block (3 levels) in <top (required)>'
12) Address validations
Failure/Error: it { should validate_presence_of(:country) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f4eb10>
# ./spec/models/address_spec.rb:13:in `block (3 levels) in <top (required)>'
13) Address validations
Failure/Error: it { should validate_presence_of(:phone) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_14::Nested_1:0x00000104f4aa60>
# ./spec/models/address_spec.rb:14:in `block (3 levels) in <top (required)>'
14) Adjustment validations
Failure/Error: it { should have_valid_factory(:adjustment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/adjustment_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/adjustment_spec.rb:6:in `block (3 levels) in <top (required)>'
15) Adjustment factory_girl should refer to the order that was passed to the factory
Failure/Error: @order = Factory(:order)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/adjustment_spec.rb:12:in `block (3 levels) in <top (required)>'
16) Country shoulda validations
Failure/Error: it {should have_many(:states) }
NoMethodError:
undefined method `has_many?' for #<Country:0x00000106182598>
# ./spec/models/country_spec.rb:5:in `block (3 levels) in <top (required)>'
17) Country shoulda validations
Failure/Error: it {should have_one(:zone_member) }
NoMethodError:
undefined method `has_one?' for #<Country:0x00000106177fa8>
# ./spec/models/country_spec.rb:6:in `block (3 levels) in <top (required)>'
18) Country shoulda validations
Failure/Error: it {should have_one(:zone) }
NoMethodError:
undefined method `has_one?' for #<Country:0x0000010616c4f0>
# ./spec/models/country_spec.rb:7:in `block (3 levels) in <top (required)>'
19) Country shoulda validations
Failure/Error: it {should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_18::Nested_1:0x00000106166938>
# ./spec/models/country_spec.rb:8:in `block (3 levels) in <top (required)>'
20) Country shoulda validations
Failure/Error: it {should validate_presence_of(:iso_name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_18::Nested_1:0x00000106161be0>
# ./spec/models/country_spec.rb:9:in `block (3 levels) in <top (required)>'
21) Gateway::Braintree should be braintree gateway
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
22) Gateway::Braintree authorize should return a success response with an authorization code
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
23) Gateway::Braintree authorize should work through the spree payment interface
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
24) Gateway::Braintree capture should capture a previous authorization
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
25) Gateway::Braintree capture raise an error if capture fails using spree interface
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
26) Gateway::Braintree purchase should return a success response with an authorization code
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
27) Gateway::Braintree purchase should work through the spree payment interface with payment profiles
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
28) Gateway::Braintree purchase should work through the spree payment interface without payment profiles
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
29) Gateway::Braintree credit should work through the spree interface
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
30) Gateway::Braintree void should work through the spree creditcard / payment interface
Failure/Error: @order = Factory(:order_with_totals, :bill_address => @address, :ship_address => @address)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:29:in `block (3 levels) in <top (required)>'
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15:in `block (2 levels) in <top (required)>'
31) InventoryUnit validation
Failure/Error: it { should have_valid_factory(:inventory_unit) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/variant_factory.rb:4:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/inventory_unit_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/inventory_unit_spec.rb:6:in `block (3 levels) in <top (required)>'
32) LineItem validation
Failure/Error: it { should have_valid_factory(:line_item) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/line_item_spec.rb:6:in `block (3 levels) in <top (required)>'
33) MailMethod current should return the first active mail method corresponding to the current environment
Failure/Error: MailMethod.current.should == method
expected: #<MailMethod id: 1, environment: "test", active: true, created_at: "2011-03-03 14:16:25", updated_at: "2011-03-03 14:16:25">
got: nil (using ==)
# ./spec/models/mail_method_spec.rb:12:in `block (3 levels) in <top (required)>'
34) Order validation
Failure/Error: it { should have_valid_factory(:order) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/order_spec.rb:6:in `block (3 levels) in <top (required)>'
35) Order factory should change the Orders count by 1 after factory has been executed
Failure/Error: Factory(:order_with_totals)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/order_spec.rb:20:in `block (4 levels) in <top (required)>'
# ./spec/models/order_spec.rb:19:in `block (3 levels) in <top (required)>'
36) Order factory line_item should have a line_item attached to it
Failure/Error: let(:order) { Factory(:order_with_totals) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/order_spec.rb:24:in `block (4 levels) in <top (required)>'
# ./spec/models/order_spec.rb:26:in `block (4 levels) in <top (required)>'
37) Order factory line_item should be attached to last line_item created
Failure/Error: let(:order) { Factory(:order_with_totals) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/order_spec.rb:24:in `block (4 levels) in <top (required)>'
# ./spec/models/order_spec.rb:29:in `block (4 levels) in <top (required)>'
38) Order#update! should call update! on every shipment
Failure/Error: order.shipments = [shipment]
Mock "Shipment_1334" received unexpected message :to_ary with (no args)
# ./spec/models/order_spec.rb:427:in `block (3 levels) in <top (required)>'
39) PaymentMethod#available should return all methods available to front-end/back-end when no parameter is passed
Failure/Error: PaymentMethod.available.size.should == 2
expected: 2
got: 0 (using ==)
# ./spec/models/payment_method_spec.rb:30:in `block (3 levels) in <top (required)>'
40) PaymentMethod#available should return all methods available to front-end/back-end when display_on = :both
Failure/Error: PaymentMethod.available(:both).size.should == 2
expected: 2
got: 0 (using ==)
# ./spec/models/payment_method_spec.rb:34:in `block (3 levels) in <top (required)>'
41) PaymentMethod#available should return all methods available to front-end when display_on = :front_end
Failure/Error: PaymentMethod.available(:front_end).size.should == 2
expected: 2
got: 0 (using ==)
# ./spec/models/payment_method_spec.rb:38:in `block (3 levels) in <top (required)>'
42) PaymentMethod#available should return all methods available to back-end when display_on = :back_end
Failure/Error: PaymentMethod.available(:back_end).size.should == 2
expected: 2
got: 0 (using ==)
# ./spec/models/payment_method_spec.rb:42:in `block (3 levels) in <top (required)>'
43) Payment validation
Failure/Error: it { should have_valid_factory(:payment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/payment_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/payment_spec.rb:6:in `block (3 levels) in <top (required)>'
44) ProductGroup validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_29::Nested_1:0x0000010655c218>
# ./spec/models/product_group_spec.rb:6:in `block (3 levels) in <top (required)>'
45) ProductOptionType validation
Failure/Error: it { should have_valid_factory(:product_option_type) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/product_option_type_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/product_option_type_spec.rb:6:in `block (3 levels) in <top (required)>'
46) ProductProperty validations
Failure/Error: it { should have_valid_factory(:product_property) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/product_property_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/product_property_spec.rb:6:in `block (3 levels) in <top (required)>'
47) Product shoulda validations
Failure/Error: it { should belong_to(:tax_category) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_33::Nested_1:0x00000102d9b810>
# ./spec/models/product_spec.rb:6:in `block (3 levels) in <top (required)>'
48) Product shoulda validations
Failure/Error: it { should belong_to(:shipping_category) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_33::Nested_1:0x00000102d98c78>
# ./spec/models/product_spec.rb:7:in `block (3 levels) in <top (required)>'
49) Product shoulda validations
Failure/Error: it { should have_many(:product_option_types) }
NoMethodError:
undefined method `has_many?' for #<Product:0x00000102d95eb0>
# ./spec/models/product_spec.rb:8:in `block (3 levels) in <top (required)>'
50) Product shoulda validations
Failure/Error: it { should have_many(:option_types) }
NoMethodError:
undefined method `has_many?' for #<Product:0x00000102d930e8>
# ./spec/models/product_spec.rb:9:in `block (3 levels) in <top (required)>'
51) Product shoulda validations
Failure/Error: it { should have_many(:product_properties) }
NoMethodError:
undefined method `has_many?' for #<Product:0x00000102d903c0>
# ./spec/models/product_spec.rb:10:in `block (3 levels) in <top (required)>'
52) Product shoulda validations
Failure/Error: it { should have_many(:properties) }
NoMethodError:
undefined method `has_many?' for #<Product:0x00000102d8c7e8>
# ./spec/models/product_spec.rb:11:in `block (3 levels) in <top (required)>'
53) Product shoulda validations
Failure/Error: it { should have_many(:images) }
NoMethodError:
undefined method `has_many?' for #<Product:0x00000102d89778>
# ./spec/models/product_spec.rb:12:in `block (3 levels) in <top (required)>'
54) Product shoulda validations
Failure/Error: it { should have_and_belong_to_many(:product_groups) }
NoMethodError:
undefined method `has_and_belong_to_many?' for #<Product:0x00000102d85f88>
# ./spec/models/product_spec.rb:13:in `block (3 levels) in <top (required)>'
55) Product shoulda validations
Failure/Error: it { should have_and_belong_to_many(:taxons) }
NoMethodError:
undefined method `has_and_belong_to_many?' for #<Product:0x00000102d829c8>
# ./spec/models/product_spec.rb:14:in `block (3 levels) in <top (required)>'
56) Product shoulda validations
Failure/Error: it { should validate_presence_of(:price) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_33::Nested_1:0x00000102d80970>
# ./spec/models/product_spec.rb:15:in `block (3 levels) in <top (required)>'
57) Product shoulda validations
Failure/Error: it { should validate_presence_of(:permalink) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_33::Nested_1:0x00000102d7ee90>
# ./spec/models/product_spec.rb:16:in `block (3 levels) in <top (required)>'
58) Product shoulda validations
Failure/Error: it { should have_valid_factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:17:in `block (3 levels) in <top (required)>'
59) Product factory_girl should have a saved product record
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:21:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:23:in `block (3 levels) in <top (required)>'
60) Product factory_girl should have zero properties record
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:21:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:26:in `block (3 levels) in <top (required)>'
61) Product factory_girl should have a master variant
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:21:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:29:in `block (3 levels) in <top (required)>'
62) Product#add_properties_and_option_types_from_prototype should have one property
Failure/Error: let(:product) { Factory(:product, :prototype_id => prototype.id) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:60:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:62:in `block (3 levels) in <top (required)>'
63) Product#has_stock? nothing in stock
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:67:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:71:in `block (4 levels) in <top (required)>'
64) Product#has_stock? master variant has items in stock
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:67:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:77:in `block (4 levels) in <top (required)>'
65) Product#has_stock? variant has items in stock
Failure/Error: let(:product) { Factory(:product) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/product_spec.rb:67:in `block (3 levels) in <top (required)>'
# ./spec/models/product_spec.rb:84:in `block (4 levels) in <top (required)>'
66) ReturnAuthorization validation
Failure/Error: it { should have_valid_factory(:return_authorization) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/return_authorization_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/return_authorization_spec.rb:6:in `block (3 levels) in <top (required)>'
67) Shipment validations
Failure/Error: it { should have_valid_factory(:shipment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/shipment_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/shipment_spec.rb:6:in `block (3 levels) in <top (required)>'
68) Shipment when order is completed with inventory tracking should validate with inventory
Failure/Error: shipment.inventory_units = [mock_model(InventoryUnit)]
Mock "InventoryUnit_1491" received unexpected message :to_ary with (no args)
# ./spec/models/shipment_spec.rb:117:in `block (4 levels) in <top (required)>'
69) ShippingCategory validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_36::Nested_1:0x00000102bb1428>
# ./spec/models/shipping_category_spec.rb:6:in `block (3 levels) in <top (required)>'
70) ShippingMethod factory should set calculable correctly
Failure/Error: let(:shipping_method){ Factory :shipping_method }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/zone_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/shipping_method_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/shipping_method_spec.rb:5:in `block (3 levels) in <top (required)>'
# ./spec/models/shipping_method_spec.rb:8:in `block (3 levels) in <top (required)>'
71) ShippingMethod validations
Failure/Error: it { should have_valid_factory(:shipping_method) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/zone_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/shipping_method_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/shipping_method_spec.rb:13:in `block (3 levels) in <top (required)>'
72) State shoulda validations
Failure/Error: it {should belong_to(:country) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_38::Nested_1:0x00000102e68a40>
# ./spec/models/state_spec.rb:5:in `block (3 levels) in <top (required)>'
73) State shoulda validations
Failure/Error: it {should have_one(:zone_member) }
NoMethodError:
undefined method `has_one?' for #<State id: nil, name: nil, abbr: nil, country_id: nil>
# ./spec/models/state_spec.rb:6:in `block (3 levels) in <top (required)>'
74) State shoulda validations
Failure/Error: it {should have_one(:zone) }
NoMethodError:
undefined method `has_one?' for #<State id: nil, name: nil, abbr: nil, country_id: nil>
# ./spec/models/state_spec.rb:7:in `block (3 levels) in <top (required)>'
75) State shoulda validations
Failure/Error: it {should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_38::Nested_1:0x00000102e5af80>
# ./spec/models/state_spec.rb:8:in `block (3 levels) in <top (required)>'
76) State shoulda validations
Failure/Error: it {should validate_presence_of(:country) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_38::Nested_1:0x00000102e56fc0>
# ./spec/models/state_spec.rb:9:in `block (3 levels) in <top (required)>'
77) TaxCategory shoulda validations
Failure/Error: it { should have_many(:tax_rates) }
NoMethodError:
undefined method `has_many?' for #<TaxCategory:0x00000102e36f40>
# ./spec/models/tax_category_spec.rb:5:in `block (3 levels) in <top (required)>'
78) TaxCategory shoulda validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_39::Nested_1:0x00000102de31b0>
# ./spec/models/tax_category_spec.rb:6:in `block (3 levels) in <top (required)>'
79) TaxCategory shoulda validations
Failure/Error: it { should have_valid_factory(:tax_category) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/tax_category_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/tax_category_spec.rb:7:in `block (3 levels) in <top (required)>'
80) TaxCategory shoulda validations uniquness validation
Failure/Error: Factory(:tax_category)
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/tax_category_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/tax_category_spec.rb:11:in `block (4 levels) in <top (required)>'
81) TaxCategory before_save tax_category1 should not be default
Failure/Error: let!(:tax_category1) { Factory(:tax_category, :is_default => true) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/tax_category_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/tax_category_spec.rb:18:in `block (3 levels) in <top (required)>'
82) TaxCategory before_save tax_category2 should be default
Failure/Error: let!(:tax_category1) { Factory(:tax_category, :is_default => true) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/tax_category_factory.rb:5:in `block (2 levels) in <top (required)>'
# ./spec/models/tax_category_spec.rb:18:in `block (3 levels) in <top (required)>'
83) TaxRate validation
Failure/Error: it { should have_valid_factory(:tax_rate) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/zone_factory.rb:13:in `block (2 levels) in <top (required)>'
# ./lib/spree_core/testing_support/factories/tax_rate_factory.rb:2:in `block (2 levels) in <top (required)>'
# ./spec/models/tax_rate_spec.rb:6:in `block (3 levels) in <top (required)>'
84) User validation
Failure/Error: it { should have_valid_factory(:user) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3:in `block (2 levels) in <top (required)>'
# ./spec/models/user_spec.rb:6:in `block (3 levels) in <top (required)>'
85) Variant validations
Failure/Error: it { should have_valid_factory(:variant) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/variant_factory.rb:4:in `block (2 levels) in <top (required)>'
# ./spec/models/variant_spec.rb:7:in `block (3 levels) in <top (required)>'
Finished in 6.24 seconds
422 examples, 85 failures, 10 pending
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/admin/mail_methods_controller_spec.rb ./spec/controllers/admin/orders_controller_spec.rb ./spec/controllers/admin/payments_controller_spec.rb ./spec/controllers/admin/products_controller_spec.rb ./spec/controllers/admin/shipments_controller_spec.rb ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/content_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/calculated_adjustments_spec.rb ./spec/lib/ext_spec.rb ./spec/lib/mail_interceptor_spec.rb ./spec/lib/mail_settings_spec.rb ./spec/models/address_spec.rb ./spec/models/adjustment_spec.rb ./spec/models/calculator/flat_percent_item_total_spec.rb ./spec/models/configuration_spec.rb ./spec/models/country_spec.rb ./spec/models/creditcard_spec.rb ./spec/models/gateway/authorize_net_cim_spec.rb ./spec/models/gateway/authorize_net_spec.rb ./spec/models/gateway/braintree_spec.rb ./spec/models/inventory_unit_spec.rb ./spec/models/line_item_spec.rb ./spec/models/mail_method_spec.rb ./spec/models/order_spec.rb ./spec/models/payment_method_spec.rb ./spec/models/payment_spec.rb ./spec/models/product_group_spec.rb ./spec/models/product_option_type_spec.rb ./spec/models/product_property_spec.rb ./spec/models/product_scope_spec.rb ./spec/models/product_spec.rb ./spec/models/return_authorization_spec.rb ./spec/models/shipment_spec.rb ./spec/models/shipping_category_spec.rb ./spec/models/shipping_method_spec.rb ./spec/models/state_spec.rb ./spec/models/tax_category_spec.rb ./spec/models/tax_rate_spec.rb ./spec/models/taxon_spec.rb ./spec/models/tracer_spec.rb ./spec/models/user_spec.rb ./spec/models/variant_spec.rb failed
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:139:in `rescue in block (2 levels) in initialize'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:135:in `block (2 levels) in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1110:in `verbose'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:131:in `block in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `call'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `block in execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in `mon_synchronize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:581:in `invoke'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2041:in `invoke_task'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2058:in `standard_exception_handling'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2013:in `top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1992:in `run'
/opt/local/bin/rake:31:in `<main>'
########################### dash #########################
rm dash/Gemfile*
cd dash && /opt/local/bin/rake test_app
(in /Users/amw/Projects/spree/dash)
run rake spree_core:install from "./test_app"
(in /Users/amw/Projects/spree/dash/spec/test_app)
run rake spree_dash:install from "./test_app"
(in /Users/amw/Projects/spree/dash/spec/test_app)
INFO: Mirroring assets from /Users/amw/Projects/spree/dash/lib/tasks/../../public to /Users/amw/Projects/spree/dash/spec/test_app/public
cd dash && /opt/local/bin/rake spec
(in /Users/amw/Projects/spree/dash)
/opt/local/bin/ruby -S bundle exec rspec ./spec/controllers/admin/overview_controller_spec.rb
..
Finished in 0.14431 seconds
2 examples, 0 failures
########################### promo #########################
rm promo/Gemfile*
cd promo && /opt/local/bin/rake test_app
(in /Users/amw/Projects/spree/promo)
run rake spree_core:install from "./test_app"
(in /Users/amw/Projects/spree/promo/spec/test_app)
run rake spree_promo:install from "./test_app"
(in /Users/amw/Projects/spree/promo/spec/test_app)
INFO: Mirroring assets from /Users/amw/Projects/spree/promo/lib/tasks/../../public to /Users/amw/Projects/spree/promo/spec/test_app/public
run rake spree_auth:install from "./test_app"
(in /Users/amw/Projects/spree/promo/spec/test_app)
cd promo && /opt/local/bin/rake spec
(in /Users/amw/Projects/spree/promo)
/opt/local/bin/ruby -S bundle exec rspec ./spec/models/promotion/rules/first_order_spec.rb ./spec/models/promotion/rules/item_total_spec.rb ./spec/models/promotion/rules/product_spec.rb ./spec/models/promotion/rules/user_spec.rb ./spec/models/promotion_rule_spec.rb ./spec/models/promotion_spec.rb
......................................FFF
Failures:
1) Promotion rules with 'all' match policy should have eligible rules if all rules are eligible
Failure/Error: promotion.promotion_rules = [rule, rule.clone]
Mock "PromotionRule_1032" received unexpected message :to_ary with (no args)
# ./spec/models/promotion_spec.rb:122:in `block (4 levels) in <top (required)>'
2) Promotion rules with 'all' match policy should not have eligible rules if any of the rules is not eligible
Failure/Error: promotion.promotion_rules = [mock_model(PromotionRule, :eligible? => true),
Mock "PromotionRule_1033" received unexpected message :to_ary with (no args)
# ./spec/models/promotion_spec.rb:128:in `block (4 levels) in <top (required)>'
3) Promotion rules with 'any' match policy should have eligible rules if any of the rules is eligible
Failure/Error: promotion.promotion_rules = [mock_model(PromotionRule, :eligible? => true),
Mock "PromotionRule_1035" received unexpected message :to_ary with (no args)
# ./spec/models/promotion_spec.rb:139:in `block (4 levels) in <top (required)>'
Finished in 0.43177 seconds
41 examples, 3 failures
rake aborted!
ruby -S bundle exec rspec ./spec/models/promotion/rules/first_order_spec.rb ./spec/models/promotion/rules/item_total_spec.rb ./spec/models/promotion/rules/product_spec.rb ./spec/models/promotion/rules/user_spec.rb ./spec/models/promotion_rule_spec.rb ./spec/models/promotion_spec.rb failed
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:139:in `rescue in block (2 levels) in initialize'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:135:in `block (2 levels) in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1110:in `verbose'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/rspec-core-2.5.1/lib/rspec/core/rake_task.rb:131:in `block in initialize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `call'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:634:in `block in execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:629:in `execute'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/monitor.rb:201:in `mon_synchronize'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:588:in `invoke_with_call_chain'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:581:in `invoke'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2041:in `invoke_task'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `each'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2019:in `block in top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2058:in `standard_exception_handling'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:2013:in `top_level'
/opt/local/lib/ruby1.9/1.9.1/rake.rb:1992:in `run'
/opt/local/bin/rake:31:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment