Skip to content

Instantly share code, notes, and snippets.

@amw
Created April 15, 2011 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amw/921099 to your computer and use it in GitHub Desktop.
Save amw/921099 to your computer and use it in GitHub Desktop.
before "require faker"
$rake spec
(in /home/amw/spree)
########################### api #########################
rm api/Gemfile*
cd api && /var/lib/gems/1.8/bin/rake test_app
(in /home/amw/spree/api)
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec"
run rake spree_core:install from "./test_app"
(in /home/amw/spree/api/spec/test_app)
run rake spree_auth:install from "./test_app"
(in /home/amw/spree/api/spec/test_app)
run rake spree_api:install from "./test_app"
(in /home/amw/spree/api/spec/test_app)
Couldn't drop db/test.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/api/spec/test_app/db/test.sqlite3>
Couldn't drop db/cucumber.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/api/spec/test_app/db/cucumber.sqlite3>
cd api && /var/lib/gems/1.8/bin/rake spec
(in /home/amw/spree/api)
/usr/bin/ruby1.8 -S bundle exec rspec ./spec/controllers/api/spree_base_controller_spec.rb ./spec/models/user_spec.rb
........
Finished in 0.24133 seconds
8 examples, 0 failures
########################### auth #########################
rm auth/Gemfile*
cd auth && /var/lib/gems/1.8/bin/rake test_app
(in /home/amw/spree/auth)
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec"
run rake spree_auth:install from "./test_app"
(in /home/amw/spree/auth/spec/test_app)
run rake spree_core:install from "./test_app"
(in /home/amw/spree/auth/spec/test_app)
Couldn't drop db/test.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/auth/spec/test_app/db/test.sqlite3>
Couldn't drop db/cucumber.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/auth/spec/test_app/db/cucumber.sqlite3>
cd auth && /var/lib/gems/1.8/bin/rake spec
(in /home/amw/spree/auth)
/usr/bin/ruby1.8 -S bundle exec rspec ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/user_sessions_controller_spec.rb ./spec/controllers/admin_base_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/token_resource_spec.rb ./spec/models/order_spec.rb ./spec/models/ability_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
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/controllers/users_controller_spec.rb:5
# ./spec/controllers/users_controller_spec.rb:7
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
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/controllers/users_controller_spec.rb:5
# ./spec/controllers/users_controller_spec.rb:7
3) UsersController#update when updating own account should perform update
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/controllers/users_controller_spec.rb:5
# ./spec/controllers/users_controller_spec.rb:7
4) UsersController#update when attempting to update other account should not allow update
Failure/Error: let(:user) { Factory(:user) }
NameError:
uninitialized constant Faker
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/controllers/users_controller_spec.rb:5
# ./spec/controllers/users_controller_spec.rb:7
5) User#create should not be anonymous
Failure/Error: let(:user) { Factory.build(:user) }
NameError:
uninitialized constant Faker
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/models/user_spec.rb:7
# ./spec/models/user_spec.rb:10
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
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/models/user_spec.rb:31
# ./spec/models/user_spec.rb:35
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
# /home/amw/spree/core/lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/models/user_spec.rb:40
Finished in 1.73 seconds
97 examples, 7 failures
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/user_sessions_controller_spec.rb ./spec/controllers/admin_base_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/token_resource_spec.rb ./spec/models/order_spec.rb ./spec/models/ability_spec.rb ./spec/models/user_spec.rb failed
(See full trace by running task with --trace)
########################### core #########################
rm core/Gemfile*
cd core && /var/lib/gems/1.8/bin/rake test_app
(in /home/amw/spree/core)
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec"
run rake spree_core:install from "./test_app"
(in /home/amw/spree/core/spec/test_app)
Couldn't drop db/test.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/core/spec/test_app/db/test.sqlite3>
Couldn't drop db/cucumber.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/core/spec/test_app/db/cucumber.sqlite3>
cd core && /var/lib/gems/1.8/bin/rake spec
(in /home/amw/spree/core)
/usr/bin/ruby1.8 -S bundle exec rspec ./spec/controllers/content_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/admin/products_controller_spec.rb ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/admin/mail_methods_controller_spec.rb ./spec/controllers/admin/orders_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/mail_settings_spec.rb ./spec/lib/ext_spec.rb ./spec/lib/calculated_adjustments_spec.rb ./spec/lib/mail_interceptor_spec.rb ./spec/models/shipment_spec.rb ./spec/models/mail_method_spec.rb ./spec/models/shipping_method_spec.rb ./spec/models/configuration_spec.rb ./spec/models/taxon_spec.rb ./spec/models/state_spec.rb ./spec/models/payment_method_spec.rb ./spec/models/tracer_spec.rb ./spec/models/tax_rate_spec.rb ./spec/models/inventory_unit_spec.rb ./spec/models/shipping_category_spec.rb ./spec/models/country_spec.rb ./spec/models/address_spec.rb ./spec/models/order_spec.rb ./spec/models/gateway/authorize_net_cim_spec.rb ./spec/models/gateway/braintree_spec.rb ./spec/models/gateway/authorize_net_spec.rb ./spec/models/calculator/flat_percent_item_total_spec.rb ./spec/models/product_property_spec.rb ./spec/models/creditcard_spec.rb ./spec/models/tax_category_spec.rb ./spec/models/taxonomy_spec.rb ./spec/models/adjustment_spec.rb ./spec/models/return_authorization_spec.rb ./spec/models/variant_spec.rb ./spec/models/product_scope_spec.rb ./spec/models/user_spec.rb ./spec/models/product_spec.rb ./spec/models/product_group_spec.rb ./spec/models/product_option_type_spec.rb ./spec/models/line_item_spec.rb ./spec/models/payment_spec.rb
.....................................*.......................**...**F..............F.......F..FF.....FFFFF...FFFF.F...F.....................F.FFFFF.FFFFFFFFFF...............FFFF..*...............*..................F........................**.......FFFFFFFFFF....F...FF.FFFFF.FFFFF.FFF.FF.F..FFFF.FFFFF................................FFFFFF.F*FF......F.............F................FFFFFFFFFFFFFFFFFFF...FFFFF....FF..........F............
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
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:525
Order#cancel should change shipment status (unless shipped)
# Not Yet Implemented
# ./spec/models/order_spec.rb:526
Adjustment should accept a negative amount
# Not Yet Implemented
# ./spec/models/adjustment_spec.rb:22
Failures:
1) Shipment validations
Failure/Error: it { should have_valid_factory(:shipment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./lib/spree_core/testing_support/factories/shipment_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/shipment_spec.rb:6
2) Shipment when order is completed with inventory tracking should validate with inventory
Failure/Error: shipment.inventory_units = [Factory(:inventory_unit)]
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/variant_factory.rb:4
# ./lib/spree_core/testing_support/factories/inventory_unit_factory.rb:2
# ./spec/models/shipment_spec.rb:117
3) 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-04-15 03:34:35", updated_at: "2011-04-15 03:34:35">
got: nil (using ==)
# ./spec/models/mail_method_spec.rb:12
4) 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
# ./lib/spree_core/testing_support/factories/shipping_method_factory.rb:2
# ./spec/models/shipping_method_spec.rb:5
# ./spec/models/shipping_method_spec.rb:8
5) 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
# ./lib/spree_core/testing_support/factories/shipping_method_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/shipping_method_spec.rb:13
6) State shoulda validations
Failure/Error: it {should belong_to(:country) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_17::Nested_1:0x7f6907ae36d0>
# ./spec/models/state_spec.rb:5
7) 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
8) 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
9) State shoulda validations
Failure/Error: it {should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_17::Nested_1:0x7f6907aa44a8>
# ./spec/models/state_spec.rb:8
10) State shoulda validations
Failure/Error: it {should validate_presence_of(:country) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_17::Nested_1:0x7f6907aa0290>
# ./spec/models/state_spec.rb:9
11) 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
12) 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
13) 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
14) 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
15) 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
# ./lib/spree_core/testing_support/factories/tax_rate_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/tax_rate_spec.rb:6
16) 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
# ./lib/spree_core/testing_support/factories/inventory_unit_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/inventory_unit_spec.rb:6
17) ShippingCategory validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_22::Nested_1:0x7f6907aa2d88>
# ./spec/models/shipping_category_spec.rb:6
18) Country shoulda validations
Failure/Error: it {should have_many(:states) }
NoMethodError:
undefined method `has_many?' for #<Country:0x7f6907a51ed8>
# ./spec/models/country_spec.rb:5
19) Country shoulda validations
Failure/Error: it {should have_one(:zone_member) }
NoMethodError:
undefined method `has_one?' for #<Country:0x7f6907a4b3f8>
# ./spec/models/country_spec.rb:6
20) Country shoulda validations
Failure/Error: it {should have_one(:zone) }
NoMethodError:
undefined method `has_one?' for #<Country:0x7f6907a42398>
# ./spec/models/country_spec.rb:7
21) Country shoulda validations
Failure/Error: it {should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_23::Nested_1:0x7f6907a3d7d0>
# ./spec/models/country_spec.rb:8
22) Country shoulda validations
Failure/Error: it {should validate_presence_of(:iso_name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_23::Nested_1:0x7f6907a2fd10>
# ./spec/models/country_spec.rb:9
23) Address validations
Failure/Error: it { should belong_to(:country) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f69079dcde0>
# ./spec/models/address_spec.rb:5
24) Address validations
Failure/Error: it { should belong_to(:state) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f69079d9140>
# ./spec/models/address_spec.rb:6
25) Address validations
Failure/Error: it { should have_many(:shipments) }
NoMethodError:
undefined method `has_many?' for #<Address:0x7f69079d1c60>
# ./spec/models/address_spec.rb:7
26) Address validations
Failure/Error: it { should validate_presence_of(:firstname) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f69079734f8>
# ./spec/models/address_spec.rb:8
27) Address validations
Failure/Error: it { should validate_presence_of(:lastname) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f6907969750>
# ./spec/models/address_spec.rb:9
28) Address validations
Failure/Error: it { should validate_presence_of(:address1) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f6907961758>
# ./spec/models/address_spec.rb:10
29) Address validations
Failure/Error: it { should validate_presence_of(:city) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f690795c398>
# ./spec/models/address_spec.rb:11
30) Address validations
Failure/Error: it { should validate_presence_of(:zipcode) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f69079589a0>
# ./spec/models/address_spec.rb:12
31) Address validations
Failure/Error: it { should validate_presence_of(:country) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f6907955958>
# ./spec/models/address_spec.rb:13
32) Address validations
Failure/Error: it { should validate_presence_of(:phone) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_24::Nested_1:0x7f6907950188>
# ./spec/models/address_spec.rb:14
33) Order validation
Failure/Error: it { should have_valid_factory(:order) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/order_spec.rb:6
34) 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
# ./spec/models/order_spec.rb:20
# ./spec/models/order_spec.rb:19
35) 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
# ./spec/models/order_spec.rb:24
# ./spec/models/order_spec.rb:26
36) 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
# ./spec/models/order_spec.rb:24
# ./spec/models/order_spec.rb:29
37) Order#update! should call update! on every shipment
Failure/Error: order.shipments = [Factory(:shipment)]
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./lib/spree_core/testing_support/factories/shipment_factory.rb:2
# ./spec/models/order_spec.rb:425
38) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
39) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
40) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
41) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
42) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
43) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
44) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
45) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
46) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
47) 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
# ./spec/models/gateway/braintree_spec.rb:29
# ./spec/models/gateway/braintree_spec.rb:183:in `with_payment_profiles_off'
# ./spec/models/gateway/braintree_spec.rb:15
48) 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
# ./lib/spree_core/testing_support/factories/product_property_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/product_property_spec.rb:6
49) Creditcard#authorize should call authorize on the gateway with the payment amount
Failure/Error: @creditcard.authorize(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:65:in `authorize'
# ./spec/models/creditcard_spec.rb:53
50) Creditcard#authorize should log the response
Failure/Error: @creditcard.authorize(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:65:in `authorize'
# ./spec/models/creditcard_spec.rb:58
51) Creditcard#authorize if sucesssfull should store the response_code and avs_response
Failure/Error: @creditcard.authorize(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:65:in `authorize'
# ./spec/models/creditcard_spec.rb:70
52) Creditcard#authorize if sucesssfull should make payment pending
Failure/Error: @creditcard.authorize(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:65:in `authorize'
# ./spec/models/creditcard_spec.rb:76
53) Creditcard#authorize if unsucessfull should make payment failed
Failure/Error: @payment.should_receive(:fail)
(#<Payment:0x7f69075ad5d0>).fail(any args)
expected: 1 time
received: 0 times
# ./spec/models/creditcard_spec.rb:82
54) Creditcard#purchase should call purchase on the gateway with the payment amount
Failure/Error: @creditcard.purchase(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:85:in `purchase'
# ./spec/models/creditcard_spec.rb:94
55) Creditcard#purchase should log the response
Failure/Error: @creditcard.purchase(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:85:in `purchase'
# ./spec/models/creditcard_spec.rb:98
56) Creditcard#purchase if sucessfull should store the response_code and avs_response
Failure/Error: @creditcard.purchase(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:85:in `purchase'
# ./spec/models/creditcard_spec.rb:111
57) Creditcard#purchase if sucessfull should make payment complete
Failure/Error: @creditcard.purchase(100, @payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:85:in `purchase'
# ./spec/models/creditcard_spec.rb:117
58) Creditcard#purchase if unsucessfull should make payment failed
Failure/Error: @payment.should_receive(:fail)
(#<Payment:0x7f690778f308>).fail(any args)
expected: 1 time
received: 0 times
# ./spec/models/creditcard_spec.rb:123
59) Creditcard#capture when payment is pending should call capture on the gateway with the self as the authorization
Failure/Error: @creditcard.capture(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:105:in `capture'
# ./spec/models/creditcard_spec.rb:142
60) Creditcard#capture when payment is pending should log the response
Failure/Error: @creditcard.capture(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:105:in `capture'
# ./spec/models/creditcard_spec.rb:146
61) Creditcard#capture when payment is pending if sucessfull should make payment complete
Failure/Error: @creditcard.capture(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:105:in `capture'
# ./spec/models/creditcard_spec.rb:157
62) Creditcard#capture when payment is pending if sucessfull should store the response_code
Failure/Error: @creditcard.capture(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:105:in `capture'
# ./spec/models/creditcard_spec.rb:160
63) Creditcard#capture when payment is pending if unsucessfull should not make payment complete
Failure/Error: @payment.should_receive(:fail)
(#<Payment:0x7f69074a2848>).fail(any args)
expected: 1 time
received: 0 times
# ./spec/models/creditcard_spec.rb:167
64) Creditcard#void should call payment_gateway.void with the payment's response_code
Failure/Error: @creditcard.void(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:131:in `void'
# ./spec/models/creditcard_spec.rb:193
65) Creditcard#void should log the response
Failure/Error: @creditcard.void(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:131:in `void'
# ./spec/models/creditcard_spec.rb:197
66) Creditcard#void if sucessfull should update the response_code with the authorization from the gateway
Failure/Error: @creditcard.void(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:131:in `void'
# ./spec/models/creditcard_spec.rb:208
67) Creditcard#credit should log the response
Failure/Error: @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:265
68) Creditcard#credit when outstanding_balance is less than payment amount should call credit on the gateway with the credit amount and response_code
Failure/Error: @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:238
69) Creditcard#credit when outstanding_balance is equal to payment amount should call credit on the gateway with the credit amount and response_code
Failure/Error: @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:248
70) Creditcard#credit when outstanding_balance is greater than payment amount should call credit on the gateway with the original payment amount and response_code
Failure/Error: @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:258
71) Creditcard#credit when response is sucesssful should create an offsetting payment
Failure/Error: @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:278
72) Creditcard#credit when response is sucesssful resulting payment should be the supplied amount
Failure/Error: @offsetting_payment = @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:282
73) Creditcard#credit when response is sucesssful resulting payment should be in the complete state
Failure/Error: @offsetting_payment = @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:282
74) Creditcard#credit when response is sucesssful resulting payment has response_code from the transaction
Failure/Error: @offsetting_payment = @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:282
75) Creditcard#credit when response is sucesssful resulting payment has original payment as its source
Failure/Error: @offsetting_payment = @creditcard.credit(@payment)
Spree::GatewayError:
Gateway unavailable for environment - development
# ./app/models/creditcard.rb:251:in `check_environment'
# ./app/models/creditcard.rb:148:in `credit'
# ./spec/models/creditcard_spec.rb:282
76) TaxCategory shoulda validations
Failure/Error: it { should have_many(:tax_rates) }
NoMethodError:
undefined method `has_many?' for #<TaxCategory:0x7f690628c370>
# ./spec/models/tax_category_spec.rb:5
77) TaxCategory shoulda validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_32::Nested_1:0x7f6906265978>
# ./spec/models/tax_category_spec.rb:6
78) 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
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/tax_category_spec.rb:7
79) 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
# ./spec/models/tax_category_spec.rb:11
80) 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
# ./spec/models/tax_category_spec.rb:18
81) 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
# ./spec/models/tax_category_spec.rb:18
82) Taxonomy shoulda validations
Failure/Error: it {should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_33::Nested_2:0x7f69061e3dd8>
# ./spec/models/taxonomy_spec.rb:10
83) Adjustment validations
Failure/Error: it { should have_valid_factory(:adjustment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./lib/spree_core/testing_support/factories/adjustment_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/adjustment_spec.rb:6
84) 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
# ./spec/models/adjustment_spec.rb:12
85) 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
# ./lib/spree_core/testing_support/factories/return_authorization_factory.rb:5
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/return_authorization_spec.rb:6
86) Variant validations
Failure/Error: it { should have_valid_factory(:variant) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/variant_factory.rb:4
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/variant_spec.rb:7
87) User validation
Failure/Error: it { should have_valid_factory(:user) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/user_spec.rb:6
88) Product shoulda validations
Failure/Error: it { should belong_to(:tax_category) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_39::Nested_1:0x7f69062d6920>
# ./spec/models/product_spec.rb:6
89) Product shoulda validations
Failure/Error: it { should belong_to(:shipping_category) }
NoMethodError:
undefined method `belong_to' for #<RSpec::Core::ExampleGroup::Nested_39::Nested_1:0x7f69062d1f10>
# ./spec/models/product_spec.rb:7
90) Product shoulda validations
Failure/Error: it { should have_many(:product_option_types) }
NoMethodError:
undefined method `has_many?' for #<Product:0x7f69062cd230>
# ./spec/models/product_spec.rb:8
91) Product shoulda validations
Failure/Error: it { should have_many(:option_types) }
NoMethodError:
undefined method `has_many?' for #<Product:0x7f69062c8870>
# ./spec/models/product_spec.rb:9
92) Product shoulda validations
Failure/Error: it { should have_many(:product_properties) }
NoMethodError:
undefined method `has_many?' for #<Product:0x7f69062c4310>
# ./spec/models/product_spec.rb:10
93) Product shoulda validations
Failure/Error: it { should have_many(:properties) }
NoMethodError:
undefined method `has_many?' for #<Product:0x7f69062bcc28>
# ./spec/models/product_spec.rb:11
94) Product shoulda validations
Failure/Error: it { should have_many(:images) }
NoMethodError:
undefined method `has_many?' for #<Product:0x7f69062b64e0>
# ./spec/models/product_spec.rb:12
95) Product shoulda validations
Failure/Error: it { should have_and_belong_to_many(:product_groups) }
NoMethodError:
undefined method `has_and_belong_to_many?' for #<Product:0x7f69062ad458>
# ./spec/models/product_spec.rb:13
96) Product shoulda validations
Failure/Error: it { should have_and_belong_to_many(:taxons) }
NoMethodError:
undefined method `has_and_belong_to_many?' for #<Product:0x7f69062a91a0>
# ./spec/models/product_spec.rb:14
97) Product shoulda validations
Failure/Error: it { should validate_presence_of(:price) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_39::Nested_1:0x7f69062a5fa0>
# ./spec/models/product_spec.rb:15
98) Product shoulda validations
Failure/Error: it { should validate_presence_of(:permalink) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_39::Nested_1:0x7f69062a3318>
# ./spec/models/product_spec.rb:16
99) 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
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/product_spec.rb:17
100) 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
# ./spec/models/product_spec.rb:21
# ./spec/models/product_spec.rb:23
101) 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
# ./spec/models/product_spec.rb:21
# ./spec/models/product_spec.rb:26
102) 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
# ./spec/models/product_spec.rb:21
# ./spec/models/product_spec.rb:29
103) Product validations find_by_param permalink should be incremented until the value is not taken should have valid permalink
Failure/Error: @product1 = Factory(:product, :name => 'foo')
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5
# ./spec/models/product_spec.rb:38
104) Product validations find_by_param make_permalink should declare validates_uniqueness_of should have an error
Failure/Error: @product1 = Factory(:product, :name => 'foo')
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5
# ./spec/models/product_spec.rb:51
105) Product validations find_by_param make_permalink should declare validates_uniqueness_of should have error message that permalink is already taken
Failure/Error: @product1 = Factory(:product, :name => 'foo')
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/product_factory.rb:5
# ./spec/models/product_spec.rb:51
106) 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
# ./spec/models/product_spec.rb:93
# ./spec/models/product_spec.rb:95
107) 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
# ./spec/models/product_spec.rb:100
# ./spec/models/product_spec.rb:104
108) 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
# ./spec/models/product_spec.rb:100
# ./spec/models/product_spec.rb:110
109) 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
# ./spec/models/product_spec.rb:100
# ./spec/models/product_spec.rb:117
110) ProductGroup validations
Failure/Error: it { should validate_presence_of(:name) }
NoMethodError:
undefined method `validate_presence_of' for #<RSpec::Core::ExampleGroup::Nested_40::Nested_1:0x7f6906059c60>
# ./spec/models/product_group_spec.rb:6
111) 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
# ./lib/spree_core/testing_support/factories/product_option_type_factory.rb:2
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/product_option_type_spec.rb:6
112) 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
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/line_item_spec.rb:6
113) Payment validation
Failure/Error: it { should have_valid_factory(:payment) }
NameError:
uninitialized constant Faker
# ./lib/spree_core/testing_support/factories/user_factory.rb:3
# ./lib/spree_core/testing_support/factories/payment_factory.rb:5
# ./spec/models/calculator/../../spec_helper.rb:45
# ./spec/models/payment_spec.rb:6
Finished in 7.01 seconds
437 examples, 113 failures, 10 pending
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/content_controller_spec.rb ./spec/controllers/checkout_controller_spec.rb ./spec/controllers/admin/products_controller_spec.rb ./spec/controllers/admin/users_controller_spec.rb ./spec/controllers/admin/mail_methods_controller_spec.rb ./spec/controllers/admin/orders_controller_spec.rb ./spec/controllers/orders_controller_spec.rb ./spec/lib/mail_settings_spec.rb ./spec/lib/ext_spec.rb ./spec/lib/calculated_adjustments_spec.rb ./spec/lib/mail_interceptor_spec.rb ./spec/models/shipment_spec.rb ./spec/models/mail_method_spec.rb ./spec/models/shipping_method_spec.rb ./spec/models/configuration_spec.rb ./spec/models/taxon_spec.rb ./spec/models/state_spec.rb ./spec/models/payment_method_spec.rb ./spec/models/tracer_spec.rb ./spec/models/tax_rate_spec.rb ./spec/models/inventory_unit_spec.rb ./spec/models/shipping_category_spec.rb ./spec/models/country_spec.rb ./spec/models/address_spec.rb ./spec/models/order_spec.rb ./spec/models/gateway/authorize_net_cim_spec.rb ./spec/models/gateway/braintree_spec.rb ./spec/models/gateway/authorize_net_spec.rb ./spec/models/calculator/flat_percent_item_total_spec.rb ./spec/models/product_property_spec.rb ./spec/models/creditcard_spec.rb ./spec/models/tax_category_spec.rb ./spec/models/taxonomy_spec.rb ./spec/models/adjustment_spec.rb ./spec/models/return_authorization_spec.rb ./spec/models/variant_spec.rb ./spec/models/product_scope_spec.rb ./spec/models/user_spec.rb ./spec/models/product_spec.rb ./spec/models/product_group_spec.rb ./spec/models/product_option_type_spec.rb ./spec/models/line_item_spec.rb ./spec/models/payment_spec.rb failed
(See full trace by running task with --trace)
########################### dash #########################
rm dash/Gemfile*
cd dash && /var/lib/gems/1.8/bin/rake test_app
(in /home/amw/spree/dash)
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec"
run rake spree_core:install from "./test_app"
(in /home/amw/spree/dash/spec/test_app)
run rake spree_dash:install from "./test_app"
(in /home/amw/spree/dash/spec/test_app)
INFO: Mirroring assets from /home/amw/spree/dash/lib/tasks/../../public to /home/amw/spree/dash/spec/test_app/public
Couldn't drop db/test.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/dash/spec/test_app/db/test.sqlite3>
Couldn't drop db/cucumber.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/dash/spec/test_app/db/cucumber.sqlite3>
cd dash && /var/lib/gems/1.8/bin/rake spec
(in /home/amw/spree/dash)
/usr/bin/ruby1.8 -S bundle exec rspec ./spec/controllers/admin/overview_controller_spec.rb
..
Finished in 0.11737 seconds
2 examples, 0 failures
########################### promo #########################
rm promo/Gemfile*
cd promo && /var/lib/gems/1.8/bin/rake test_app
(in /home/amw/spree/promo)
run rails new test_app --database=sqlite3 -GJTq --skip-gemfile from "./spec"
run rake spree_core:install from "./test_app"
(in /home/amw/spree/promo/spec/test_app)
run rake spree_promo:install from "./test_app"
(in /home/amw/spree/promo/spec/test_app)
INFO: Mirroring assets from /home/amw/spree/promo/lib/tasks/../../public to /home/amw/spree/promo/spec/test_app/public
run rake spree_auth:install from "./test_app"
(in /home/amw/spree/promo/spec/test_app)
Couldn't drop db/test.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/promo/spec/test_app/db/test.sqlite3>
Couldn't drop db/cucumber.sqlite3 : #<Errno::ENOENT: No such file or directory - /home/amw/spree/promo/spec/test_app/db/cucumber.sqlite3>
cd promo && /var/lib/gems/1.8/bin/rake spec
(in /home/amw/spree/promo)
/usr/bin/ruby1.8 -S bundle exec rspec ./spec/models/promotion_spec.rb ./spec/models/promotion/rules/first_order_spec.rb ./spec/models/promotion/rules/item_total_spec.rb ./spec/models/promotion/rules/user_spec.rb ./spec/models/promotion/rules/product_spec.rb ./spec/models/promotion_rule_spec.rb
.........................................
Finished in 0.45847 seconds
41 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment