spree_core 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spree/core/version.rb +1 -1
- data/spree_core.gemspec +1 -1
- metadata +3 -206
- data/spec/fixtures/microdata.html +0 -22
- data/spec/fixtures/microdata_itemref.html +0 -15
- data/spec/fixtures/microdata_no_itemscope.html +0 -20
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spec/helpers/base_helper_spec.rb +0 -200
- data/spec/helpers/products_helper_spec.rb +0 -289
- data/spec/lib/calculated_adjustments_spec.rb +0 -7
- data/spec/lib/i18n_spec.rb +0 -123
- data/spec/lib/search/base_spec.rb +0 -86
- data/spec/lib/spree/core/controller_helpers/auth_spec.rb +0 -103
- data/spec/lib/spree/core/controller_helpers/order_spec.rb +0 -110
- data/spec/lib/spree/core/controller_helpers/search_spec.rb +0 -17
- data/spec/lib/spree/core/controller_helpers/store_spec.rb +0 -72
- data/spec/lib/spree/core/controller_helpers/strong_parameters_spec.rb +0 -39
- data/spec/lib/spree/core/delegate_belongs_to_spec.rb +0 -22
- data/spec/lib/spree/core/importer/order_spec.rb +0 -605
- data/spec/lib/spree/core/number_generator_spec.rb +0 -175
- data/spec/lib/spree/core/token_generator_spec.rb +0 -24
- data/spec/lib/spree/core/validators/email_spec.rb +0 -53
- data/spec/lib/spree/core_spec.rb +0 -23
- data/spec/lib/spree/localized_number_spec.rb +0 -48
- data/spec/lib/spree/migrations_spec.rb +0 -36
- data/spec/lib/spree/money_spec.rb +0 -122
- data/spec/lib/tasks/exchanges_spec.rb +0 -136
- data/spec/mailers/order_mailer_spec.rb +0 -122
- data/spec/mailers/reimbursement_mailer_spec.rb +0 -47
- data/spec/mailers/shipment_mailer_spec.rb +0 -81
- data/spec/mailers/test_mailer_spec.rb +0 -38
- data/spec/models/option_type_prototype_spec.rb +0 -9
- data/spec/models/spree/ability_spec.rb +0 -251
- data/spec/models/spree/address_spec.rb +0 -402
- data/spec/models/spree/adjustable/adjuster/base_spec.rb +0 -10
- data/spec/models/spree/adjustable/adjuster/promotion_spec.rb +0 -211
- data/spec/models/spree/adjustable/adjuster/tax_spec.rb +0 -86
- data/spec/models/spree/adjustable/adjustments_updater_spec.rb +0 -26
- data/spec/models/spree/adjustment_spec.rb +0 -189
- data/spec/models/spree/app_configuration_spec.rb +0 -26
- data/spec/models/spree/asset_spec.rb +0 -28
- data/spec/models/spree/calculator/default_tax_spec.rb +0 -152
- data/spec/models/spree/calculator/flat_percent_item_total_spec.rb +0 -25
- data/spec/models/spree/calculator/flat_rate_spec.rb +0 -47
- data/spec/models/spree/calculator/flexi_rate_spec.rb +0 -41
- data/spec/models/spree/calculator/percent_on_line_item_spec.rb +0 -15
- data/spec/models/spree/calculator/price_sack_spec.rb +0 -30
- data/spec/models/spree/calculator/refunds/default_refund_amount_spec.rb +0 -47
- data/spec/models/spree/calculator/shipping.rb +0 -8
- data/spec/models/spree/calculator/shipping/flat_percent_item_total_spec.rb +0 -23
- data/spec/models/spree/calculator/shipping/flat_rate_spec.rb +0 -13
- data/spec/models/spree/calculator/shipping/flexi_rate_spec.rb +0 -52
- data/spec/models/spree/calculator/shipping/per_item_spec.rb +0 -20
- data/spec/models/spree/calculator/shipping/price_sack_spec.rb +0 -29
- data/spec/models/spree/calculator/tiered_flat_rate_spec.rb +0 -40
- data/spec/models/spree/calculator/tiered_percent_spec.rb +0 -51
- data/spec/models/spree/calculator_spec.rb +0 -69
- data/spec/models/spree/classification_spec.rb +0 -93
- data/spec/models/spree/concerns/display_money_spec.rb +0 -43
- data/spec/models/spree/concerns/user_methods_spec.rb +0 -82
- data/spec/models/spree/concerns/vat_price_calculation_spec.rb +0 -66
- data/spec/models/spree/country_spec.rb +0 -55
- data/spec/models/spree/credit_card_spec.rb +0 -328
- data/spec/models/spree/customer_return_spec.rb +0 -240
- data/spec/models/spree/exchange_spec.rb +0 -75
- data/spec/models/spree/gateway/bogus_simple.rb +0 -20
- data/spec/models/spree/gateway/bogus_spec.rb +0 -13
- data/spec/models/spree/gateway_spec.rb +0 -61
- data/spec/models/spree/image_spec.rb +0 -8
- data/spec/models/spree/inventory_unit_spec.rb +0 -256
- data/spec/models/spree/line_item_spec.rb +0 -346
- data/spec/models/spree/option_type_spec.rb +0 -14
- data/spec/models/spree/option_value_spec.rb +0 -18
- data/spec/models/spree/order/address_spec.rb +0 -50
- data/spec/models/spree/order/adjustments_spec.rb +0 -29
- data/spec/models/spree/order/callbacks_spec.rb +0 -42
- data/spec/models/spree/order/checkout_spec.rb +0 -770
- data/spec/models/spree/order/currency_updater_spec.rb +0 -32
- data/spec/models/spree/order/finalizing_spec.rb +0 -114
- data/spec/models/spree/order/helpers_spec.rb +0 -5
- data/spec/models/spree/order/payment_spec.rb +0 -214
- data/spec/models/spree/order/risk_assessment_spec.rb +0 -84
- data/spec/models/spree/order/shipments_spec.rb +0 -43
- data/spec/models/spree/order/state_machine_spec.rb +0 -212
- data/spec/models/spree/order/store_credit_spec.rb +0 -426
- data/spec/models/spree/order/tax_spec.rb +0 -84
- data/spec/models/spree/order/totals_spec.rb +0 -24
- data/spec/models/spree/order/updating_spec.rb +0 -18
- data/spec/models/spree/order/validations_spec.rb +0 -15
- data/spec/models/spree/order_contents_spec.rb +0 -297
- data/spec/models/spree/order_inventory_spec.rb +0 -239
- data/spec/models/spree/order_merger_spec.rb +0 -135
- data/spec/models/spree/order_spec.rb +0 -1046
- data/spec/models/spree/order_updater_spec.rb +0 -305
- data/spec/models/spree/payment/gateway_options_spec.rb +0 -127
- data/spec/models/spree/payment/store_credit_spec.rb +0 -60
- data/spec/models/spree/payment_method/store_credit_spec.rb +0 -291
- data/spec/models/spree/payment_method_spec.rb +0 -103
- data/spec/models/spree/payment_spec.rb +0 -919
- data/spec/models/spree/preference_spec.rb +0 -80
- data/spec/models/spree/preferences/configuration_spec.rb +0 -30
- data/spec/models/spree/preferences/preferable_spec.rb +0 -344
- data/spec/models/spree/preferences/scoped_store_spec.rb +0 -58
- data/spec/models/spree/preferences/store_spec.rb +0 -46
- data/spec/models/spree/price_spec.rb +0 -128
- data/spec/models/spree/product/scopes_spec.rb +0 -183
- data/spec/models/spree/product_duplicator_spec.rb +0 -103
- data/spec/models/spree/product_filter_spec.rb +0 -26
- data/spec/models/spree/product_option_type_spec.rb +0 -9
- data/spec/models/spree/product_promotion_rule_spec.rb +0 -9
- data/spec/models/spree/product_property_spec.rb +0 -26
- data/spec/models/spree/product_spec.rb +0 -629
- data/spec/models/spree/promotion/actions/create_adjustment_spec.rb +0 -113
- data/spec/models/spree/promotion/actions/create_item_adjustments_spec.rb +0 -148
- data/spec/models/spree/promotion/actions/create_line_items_spec.rb +0 -86
- data/spec/models/spree/promotion/actions/free_shipping_spec.rb +0 -36
- data/spec/models/spree/promotion/rules/country_spec.rb +0 -36
- data/spec/models/spree/promotion/rules/first_order_spec.rb +0 -75
- data/spec/models/spree/promotion/rules/item_total_spec.rb +0 -282
- data/spec/models/spree/promotion/rules/one_use_per_user_spec.rb +0 -42
- data/spec/models/spree/promotion/rules/option_value_spec.rb +0 -90
- data/spec/models/spree/promotion/rules/product_spec.rb +0 -143
- data/spec/models/spree/promotion/rules/taxon_spec.rb +0 -102
- data/spec/models/spree/promotion/rules/user_logged_in_spec.rb +0 -27
- data/spec/models/spree/promotion/rules/user_spec.rb +0 -45
- data/spec/models/spree/promotion_action_spec.rb +0 -10
- data/spec/models/spree/promotion_category_spec.rb +0 -17
- data/spec/models/spree/promotion_handler/cart_spec.rb +0 -102
- data/spec/models/spree/promotion_handler/coupon_spec.rb +0 -323
- data/spec/models/spree/promotion_handler/free_shipping_spec.rb +0 -48
- data/spec/models/spree/promotion_handler/page_spec.rb +0 -44
- data/spec/models/spree/promotion_rule_spec.rb +0 -29
- data/spec/models/spree/promotion_rule_taxon_spec.rb +0 -9
- data/spec/models/spree/promotion_rule_user_spec.rb +0 -9
- data/spec/models/spree/promotion_spec.rb +0 -679
- data/spec/models/spree/property_prototype_spec.rb +0 -9
- data/spec/models/spree/property_spec.rb +0 -5
- data/spec/models/spree/prototype_spec.rb +0 -5
- data/spec/models/spree/prototype_taxon_spec.rb +0 -9
- data/spec/models/spree/refund_reason_spec.rb +0 -20
- data/spec/models/spree/refund_spec.rb +0 -195
- data/spec/models/spree/reimbursement/credit_spec.rb +0 -36
- data/spec/models/spree/reimbursement/reimbursement_type_engine_spec.rb +0 -140
- data/spec/models/spree/reimbursement/reimbursement_type_validator_spec.rb +0 -83
- data/spec/models/spree/reimbursement_performer_spec.rb +0 -30
- data/spec/models/spree/reimbursement_spec.rb +0 -188
- data/spec/models/spree/reimbursement_tax_calculator_spec.rb +0 -63
- data/spec/models/spree/reimbursement_type/credit_spec.rb +0 -53
- data/spec/models/spree/reimbursement_type/exchange_spec.rb +0 -46
- data/spec/models/spree/reimbursement_type/original_payment_spec.rb +0 -55
- data/spec/models/spree/reimbursement_type/store_credit_spec.rb +0 -101
- data/spec/models/spree/return_authorization_reason_spec.rb +0 -7
- data/spec/models/spree/return_authorization_spec.rb +0 -230
- data/spec/models/spree/return_item/eligibility_validator/default_spec.rb +0 -77
- data/spec/models/spree/return_item/eligibility_validator/inventory_shipped_spec.rb +0 -58
- data/spec/models/spree/return_item/eligibility_validator/no_reimbursements_spec.rb +0 -61
- data/spec/models/spree/return_item/eligibility_validator/order_completed_spec.rb +0 -32
- data/spec/models/spree/return_item/eligibility_validator/rma_required_spec.rb +0 -29
- data/spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb +0 -35
- data/spec/models/spree/return_item/exchange_variant_eligibility/same_option_value_spec.rb +0 -65
- data/spec/models/spree/return_item/exchange_variant_eligibility/same_product_spec.rb +0 -43
- data/spec/models/spree/return_item_spec.rb +0 -731
- data/spec/models/spree/returns_calculator_spec.rb +0 -14
- data/spec/models/spree/role_spec.rb +0 -7
- data/spec/models/spree/shipment_spec.rb +0 -742
- data/spec/models/spree/shipping_calculator_spec.rb +0 -45
- data/spec/models/spree/shipping_category_spec.rb +0 -19
- data/spec/models/spree/shipping_method_spec.rb +0 -95
- data/spec/models/spree/shipping_rate_spec.rb +0 -140
- data/spec/models/spree/state_spec.rb +0 -29
- data/spec/models/spree/stock/availability_validator_spec.rb +0 -36
- data/spec/models/spree/stock/content_item_spec.rb +0 -31
- data/spec/models/spree/stock/coordinator_spec.rb +0 -61
- data/spec/models/spree/stock/differentiator_spec.rb +0 -39
- data/spec/models/spree/stock/estimator_spec.rb +0 -202
- data/spec/models/spree/stock/inventory_unit_builder_spec.rb +0 -38
- data/spec/models/spree/stock/package_spec.rb +0 -182
- data/spec/models/spree/stock/packer_spec.rb +0 -70
- data/spec/models/spree/stock/prioritizer_spec.rb +0 -125
- data/spec/models/spree/stock/quantifier_spec.rb +0 -126
- data/spec/models/spree/stock/splitter/backordered_spec.rb +0 -29
- data/spec/models/spree/stock/splitter/base_spec.rb +0 -21
- data/spec/models/spree/stock/splitter/shipping_category_spec.rb +0 -47
- data/spec/models/spree/stock/splitter/weight_spec.rb +0 -32
- data/spec/models/spree/stock_item_spec.rb +0 -432
- data/spec/models/spree/stock_location_spec.rb +0 -243
- data/spec/models/spree/stock_movement_spec.rb +0 -120
- data/spec/models/spree/stock_transfer_spec.rb +0 -50
- data/spec/models/spree/store_credit_event_spec.rb +0 -101
- data/spec/models/spree/store_credit_spec.rb +0 -786
- data/spec/models/spree/store_spec.rb +0 -78
- data/spec/models/spree/tax_category_spec.rb +0 -32
- data/spec/models/spree/tax_rate_spec.rb +0 -561
- data/spec/models/spree/taxon_spec.rb +0 -85
- data/spec/models/spree/taxonomy_spec.rb +0 -18
- data/spec/models/spree/tracker_spec.rb +0 -21
- data/spec/models/spree/user_spec.rb +0 -203
- data/spec/models/spree/variant_spec.rb +0 -818
- data/spec/models/spree/zone_member_spec.rb +0 -38
- data/spec/models/spree/zone_spec.rb +0 -472
- data/spec/spec_helper.rb +0 -79
- data/spec/support/big_decimal.rb +0 -5
- data/spec/support/concerns/adjustment_source.rb +0 -23
- data/spec/support/concerns/default_price.rb +0 -37
- data/spec/support/rake.rb +0 -13
- data/spec/support/test_gateway.rb +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66565fccdd69ce5d3cff1387f60e07415b8f75bf
|
4
|
+
data.tar.gz: f297def4dd1988664293040ac34de13334f5e806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cef8199f06109eecf6f2622ee1f0afa32f4012209fa57613b86c23fba23e29342b87014e54a2e33ceca67414cfa4c66aa7450826e83a2b2d1e58f1313f045b47
|
7
|
+
data.tar.gz: 880a86398c03677d2c90f2ac5100e8761c5a98fe0fb4597c6e38abbaa2c5e93f3daf0307a1c895b62d2334368e8f32e708751f5a3ae0c028a409cdae841f6ec8
|
data/lib/spree/core/version.rb
CHANGED
data/spree_core.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.homepage = 'http://spreecommerce.com'
|
17
17
|
s.license = 'BSD-3-Clause'
|
18
18
|
|
19
|
-
s.files = `git ls-files`.split("\n")
|
19
|
+
s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) }
|
20
20
|
s.require_path = 'lib'
|
21
21
|
|
22
22
|
s.add_dependency 'activemerchant', '~> 1.59'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|
@@ -948,209 +948,6 @@ files:
|
|
948
948
|
- lib/tasks/email.rake
|
949
949
|
- lib/tasks/exchanges.rake
|
950
950
|
- script/rails
|
951
|
-
- spec/fixtures/microdata.html
|
952
|
-
- spec/fixtures/microdata_itemref.html
|
953
|
-
- spec/fixtures/microdata_no_itemscope.html
|
954
|
-
- spec/fixtures/thinking-cat.jpg
|
955
|
-
- spec/helpers/base_helper_spec.rb
|
956
|
-
- spec/helpers/products_helper_spec.rb
|
957
|
-
- spec/lib/calculated_adjustments_spec.rb
|
958
|
-
- spec/lib/i18n_spec.rb
|
959
|
-
- spec/lib/search/base_spec.rb
|
960
|
-
- spec/lib/spree/core/controller_helpers/auth_spec.rb
|
961
|
-
- spec/lib/spree/core/controller_helpers/order_spec.rb
|
962
|
-
- spec/lib/spree/core/controller_helpers/search_spec.rb
|
963
|
-
- spec/lib/spree/core/controller_helpers/store_spec.rb
|
964
|
-
- spec/lib/spree/core/controller_helpers/strong_parameters_spec.rb
|
965
|
-
- spec/lib/spree/core/delegate_belongs_to_spec.rb
|
966
|
-
- spec/lib/spree/core/importer/order_spec.rb
|
967
|
-
- spec/lib/spree/core/number_generator_spec.rb
|
968
|
-
- spec/lib/spree/core/token_generator_spec.rb
|
969
|
-
- spec/lib/spree/core/validators/email_spec.rb
|
970
|
-
- spec/lib/spree/core_spec.rb
|
971
|
-
- spec/lib/spree/localized_number_spec.rb
|
972
|
-
- spec/lib/spree/migrations_spec.rb
|
973
|
-
- spec/lib/spree/money_spec.rb
|
974
|
-
- spec/lib/tasks/exchanges_spec.rb
|
975
|
-
- spec/mailers/order_mailer_spec.rb
|
976
|
-
- spec/mailers/reimbursement_mailer_spec.rb
|
977
|
-
- spec/mailers/shipment_mailer_spec.rb
|
978
|
-
- spec/mailers/test_mailer_spec.rb
|
979
|
-
- spec/models/option_type_prototype_spec.rb
|
980
|
-
- spec/models/spree/ability_spec.rb
|
981
|
-
- spec/models/spree/address_spec.rb
|
982
|
-
- spec/models/spree/adjustable/adjuster/base_spec.rb
|
983
|
-
- spec/models/spree/adjustable/adjuster/promotion_spec.rb
|
984
|
-
- spec/models/spree/adjustable/adjuster/tax_spec.rb
|
985
|
-
- spec/models/spree/adjustable/adjustments_updater_spec.rb
|
986
|
-
- spec/models/spree/adjustment_spec.rb
|
987
|
-
- spec/models/spree/app_configuration_spec.rb
|
988
|
-
- spec/models/spree/asset_spec.rb
|
989
|
-
- spec/models/spree/calculator/default_tax_spec.rb
|
990
|
-
- spec/models/spree/calculator/flat_percent_item_total_spec.rb
|
991
|
-
- spec/models/spree/calculator/flat_rate_spec.rb
|
992
|
-
- spec/models/spree/calculator/flexi_rate_spec.rb
|
993
|
-
- spec/models/spree/calculator/percent_on_line_item_spec.rb
|
994
|
-
- spec/models/spree/calculator/price_sack_spec.rb
|
995
|
-
- spec/models/spree/calculator/refunds/default_refund_amount_spec.rb
|
996
|
-
- spec/models/spree/calculator/shipping.rb
|
997
|
-
- spec/models/spree/calculator/shipping/flat_percent_item_total_spec.rb
|
998
|
-
- spec/models/spree/calculator/shipping/flat_rate_spec.rb
|
999
|
-
- spec/models/spree/calculator/shipping/flexi_rate_spec.rb
|
1000
|
-
- spec/models/spree/calculator/shipping/per_item_spec.rb
|
1001
|
-
- spec/models/spree/calculator/shipping/price_sack_spec.rb
|
1002
|
-
- spec/models/spree/calculator/tiered_flat_rate_spec.rb
|
1003
|
-
- spec/models/spree/calculator/tiered_percent_spec.rb
|
1004
|
-
- spec/models/spree/calculator_spec.rb
|
1005
|
-
- spec/models/spree/classification_spec.rb
|
1006
|
-
- spec/models/spree/concerns/display_money_spec.rb
|
1007
|
-
- spec/models/spree/concerns/user_methods_spec.rb
|
1008
|
-
- spec/models/spree/concerns/vat_price_calculation_spec.rb
|
1009
|
-
- spec/models/spree/country_spec.rb
|
1010
|
-
- spec/models/spree/credit_card_spec.rb
|
1011
|
-
- spec/models/spree/customer_return_spec.rb
|
1012
|
-
- spec/models/spree/exchange_spec.rb
|
1013
|
-
- spec/models/spree/gateway/bogus_simple.rb
|
1014
|
-
- spec/models/spree/gateway/bogus_spec.rb
|
1015
|
-
- spec/models/spree/gateway_spec.rb
|
1016
|
-
- spec/models/spree/image_spec.rb
|
1017
|
-
- spec/models/spree/inventory_unit_spec.rb
|
1018
|
-
- spec/models/spree/line_item_spec.rb
|
1019
|
-
- spec/models/spree/option_type_spec.rb
|
1020
|
-
- spec/models/spree/option_value_spec.rb
|
1021
|
-
- spec/models/spree/order/address_spec.rb
|
1022
|
-
- spec/models/spree/order/adjustments_spec.rb
|
1023
|
-
- spec/models/spree/order/callbacks_spec.rb
|
1024
|
-
- spec/models/spree/order/checkout_spec.rb
|
1025
|
-
- spec/models/spree/order/currency_updater_spec.rb
|
1026
|
-
- spec/models/spree/order/finalizing_spec.rb
|
1027
|
-
- spec/models/spree/order/helpers_spec.rb
|
1028
|
-
- spec/models/spree/order/payment_spec.rb
|
1029
|
-
- spec/models/spree/order/risk_assessment_spec.rb
|
1030
|
-
- spec/models/spree/order/shipments_spec.rb
|
1031
|
-
- spec/models/spree/order/state_machine_spec.rb
|
1032
|
-
- spec/models/spree/order/store_credit_spec.rb
|
1033
|
-
- spec/models/spree/order/tax_spec.rb
|
1034
|
-
- spec/models/spree/order/totals_spec.rb
|
1035
|
-
- spec/models/spree/order/updating_spec.rb
|
1036
|
-
- spec/models/spree/order/validations_spec.rb
|
1037
|
-
- spec/models/spree/order_contents_spec.rb
|
1038
|
-
- spec/models/spree/order_inventory_spec.rb
|
1039
|
-
- spec/models/spree/order_merger_spec.rb
|
1040
|
-
- spec/models/spree/order_spec.rb
|
1041
|
-
- spec/models/spree/order_updater_spec.rb
|
1042
|
-
- spec/models/spree/payment/gateway_options_spec.rb
|
1043
|
-
- spec/models/spree/payment/store_credit_spec.rb
|
1044
|
-
- spec/models/spree/payment_method/store_credit_spec.rb
|
1045
|
-
- spec/models/spree/payment_method_spec.rb
|
1046
|
-
- spec/models/spree/payment_spec.rb
|
1047
|
-
- spec/models/spree/preference_spec.rb
|
1048
|
-
- spec/models/spree/preferences/configuration_spec.rb
|
1049
|
-
- spec/models/spree/preferences/preferable_spec.rb
|
1050
|
-
- spec/models/spree/preferences/scoped_store_spec.rb
|
1051
|
-
- spec/models/spree/preferences/store_spec.rb
|
1052
|
-
- spec/models/spree/price_spec.rb
|
1053
|
-
- spec/models/spree/product/scopes_spec.rb
|
1054
|
-
- spec/models/spree/product_duplicator_spec.rb
|
1055
|
-
- spec/models/spree/product_filter_spec.rb
|
1056
|
-
- spec/models/spree/product_option_type_spec.rb
|
1057
|
-
- spec/models/spree/product_promotion_rule_spec.rb
|
1058
|
-
- spec/models/spree/product_property_spec.rb
|
1059
|
-
- spec/models/spree/product_spec.rb
|
1060
|
-
- spec/models/spree/promotion/actions/create_adjustment_spec.rb
|
1061
|
-
- spec/models/spree/promotion/actions/create_item_adjustments_spec.rb
|
1062
|
-
- spec/models/spree/promotion/actions/create_line_items_spec.rb
|
1063
|
-
- spec/models/spree/promotion/actions/free_shipping_spec.rb
|
1064
|
-
- spec/models/spree/promotion/rules/country_spec.rb
|
1065
|
-
- spec/models/spree/promotion/rules/first_order_spec.rb
|
1066
|
-
- spec/models/spree/promotion/rules/item_total_spec.rb
|
1067
|
-
- spec/models/spree/promotion/rules/one_use_per_user_spec.rb
|
1068
|
-
- spec/models/spree/promotion/rules/option_value_spec.rb
|
1069
|
-
- spec/models/spree/promotion/rules/product_spec.rb
|
1070
|
-
- spec/models/spree/promotion/rules/taxon_spec.rb
|
1071
|
-
- spec/models/spree/promotion/rules/user_logged_in_spec.rb
|
1072
|
-
- spec/models/spree/promotion/rules/user_spec.rb
|
1073
|
-
- spec/models/spree/promotion_action_spec.rb
|
1074
|
-
- spec/models/spree/promotion_category_spec.rb
|
1075
|
-
- spec/models/spree/promotion_handler/cart_spec.rb
|
1076
|
-
- spec/models/spree/promotion_handler/coupon_spec.rb
|
1077
|
-
- spec/models/spree/promotion_handler/free_shipping_spec.rb
|
1078
|
-
- spec/models/spree/promotion_handler/page_spec.rb
|
1079
|
-
- spec/models/spree/promotion_rule_spec.rb
|
1080
|
-
- spec/models/spree/promotion_rule_taxon_spec.rb
|
1081
|
-
- spec/models/spree/promotion_rule_user_spec.rb
|
1082
|
-
- spec/models/spree/promotion_spec.rb
|
1083
|
-
- spec/models/spree/property_prototype_spec.rb
|
1084
|
-
- spec/models/spree/property_spec.rb
|
1085
|
-
- spec/models/spree/prototype_spec.rb
|
1086
|
-
- spec/models/spree/prototype_taxon_spec.rb
|
1087
|
-
- spec/models/spree/refund_reason_spec.rb
|
1088
|
-
- spec/models/spree/refund_spec.rb
|
1089
|
-
- spec/models/spree/reimbursement/credit_spec.rb
|
1090
|
-
- spec/models/spree/reimbursement/reimbursement_type_engine_spec.rb
|
1091
|
-
- spec/models/spree/reimbursement/reimbursement_type_validator_spec.rb
|
1092
|
-
- spec/models/spree/reimbursement_performer_spec.rb
|
1093
|
-
- spec/models/spree/reimbursement_spec.rb
|
1094
|
-
- spec/models/spree/reimbursement_tax_calculator_spec.rb
|
1095
|
-
- spec/models/spree/reimbursement_type/credit_spec.rb
|
1096
|
-
- spec/models/spree/reimbursement_type/exchange_spec.rb
|
1097
|
-
- spec/models/spree/reimbursement_type/original_payment_spec.rb
|
1098
|
-
- spec/models/spree/reimbursement_type/store_credit_spec.rb
|
1099
|
-
- spec/models/spree/return_authorization_reason_spec.rb
|
1100
|
-
- spec/models/spree/return_authorization_spec.rb
|
1101
|
-
- spec/models/spree/return_item/eligibility_validator/default_spec.rb
|
1102
|
-
- spec/models/spree/return_item/eligibility_validator/inventory_shipped_spec.rb
|
1103
|
-
- spec/models/spree/return_item/eligibility_validator/no_reimbursements_spec.rb
|
1104
|
-
- spec/models/spree/return_item/eligibility_validator/order_completed_spec.rb
|
1105
|
-
- spec/models/spree/return_item/eligibility_validator/rma_required_spec.rb
|
1106
|
-
- spec/models/spree/return_item/eligibility_validator/time_since_purchase_spec.rb
|
1107
|
-
- spec/models/spree/return_item/exchange_variant_eligibility/same_option_value_spec.rb
|
1108
|
-
- spec/models/spree/return_item/exchange_variant_eligibility/same_product_spec.rb
|
1109
|
-
- spec/models/spree/return_item_spec.rb
|
1110
|
-
- spec/models/spree/returns_calculator_spec.rb
|
1111
|
-
- spec/models/spree/role_spec.rb
|
1112
|
-
- spec/models/spree/shipment_spec.rb
|
1113
|
-
- spec/models/spree/shipping_calculator_spec.rb
|
1114
|
-
- spec/models/spree/shipping_category_spec.rb
|
1115
|
-
- spec/models/spree/shipping_method_spec.rb
|
1116
|
-
- spec/models/spree/shipping_rate_spec.rb
|
1117
|
-
- spec/models/spree/state_spec.rb
|
1118
|
-
- spec/models/spree/stock/availability_validator_spec.rb
|
1119
|
-
- spec/models/spree/stock/content_item_spec.rb
|
1120
|
-
- spec/models/spree/stock/coordinator_spec.rb
|
1121
|
-
- spec/models/spree/stock/differentiator_spec.rb
|
1122
|
-
- spec/models/spree/stock/estimator_spec.rb
|
1123
|
-
- spec/models/spree/stock/inventory_unit_builder_spec.rb
|
1124
|
-
- spec/models/spree/stock/package_spec.rb
|
1125
|
-
- spec/models/spree/stock/packer_spec.rb
|
1126
|
-
- spec/models/spree/stock/prioritizer_spec.rb
|
1127
|
-
- spec/models/spree/stock/quantifier_spec.rb
|
1128
|
-
- spec/models/spree/stock/splitter/backordered_spec.rb
|
1129
|
-
- spec/models/spree/stock/splitter/base_spec.rb
|
1130
|
-
- spec/models/spree/stock/splitter/shipping_category_spec.rb
|
1131
|
-
- spec/models/spree/stock/splitter/weight_spec.rb
|
1132
|
-
- spec/models/spree/stock_item_spec.rb
|
1133
|
-
- spec/models/spree/stock_location_spec.rb
|
1134
|
-
- spec/models/spree/stock_movement_spec.rb
|
1135
|
-
- spec/models/spree/stock_transfer_spec.rb
|
1136
|
-
- spec/models/spree/store_credit_event_spec.rb
|
1137
|
-
- spec/models/spree/store_credit_spec.rb
|
1138
|
-
- spec/models/spree/store_spec.rb
|
1139
|
-
- spec/models/spree/tax_category_spec.rb
|
1140
|
-
- spec/models/spree/tax_rate_spec.rb
|
1141
|
-
- spec/models/spree/taxon_spec.rb
|
1142
|
-
- spec/models/spree/taxonomy_spec.rb
|
1143
|
-
- spec/models/spree/tracker_spec.rb
|
1144
|
-
- spec/models/spree/user_spec.rb
|
1145
|
-
- spec/models/spree/variant_spec.rb
|
1146
|
-
- spec/models/spree/zone_member_spec.rb
|
1147
|
-
- spec/models/spree/zone_spec.rb
|
1148
|
-
- spec/spec_helper.rb
|
1149
|
-
- spec/support/big_decimal.rb
|
1150
|
-
- spec/support/concerns/adjustment_source.rb
|
1151
|
-
- spec/support/concerns/default_price.rb
|
1152
|
-
- spec/support/rake.rb
|
1153
|
-
- spec/support/test_gateway.rb
|
1154
951
|
- spree_core.gemspec
|
1155
952
|
- vendor/assets/javascripts/jquery-migrate-1.0.0.js
|
1156
953
|
- vendor/assets/javascripts/jquery.payment.js
|
@@ -1177,7 +974,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1177
974
|
version: 1.8.23
|
1178
975
|
requirements: []
|
1179
976
|
rubyforge_project:
|
1180
|
-
rubygems_version: 2.6.
|
977
|
+
rubygems_version: 2.6.12
|
1181
978
|
signing_key:
|
1182
979
|
specification_version: 4
|
1183
980
|
summary: The bare bones necessary for Spree.
|
@@ -1,22 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<!-- shameless -->
|
4
|
-
<head>
|
5
|
-
<title>Jason Ronallo</title>
|
6
|
-
</head>
|
7
|
-
|
8
|
-
<body>
|
9
|
-
<span itemscope itemtype="http://schema.org/Person"
|
10
|
-
itemid="http://ronallo.com#me">
|
11
|
-
<a itemprop="url" href="http://twitter.com/ronallo">
|
12
|
-
<span itemprop="name">Jason Ronallo</span>
|
13
|
-
</a> is the
|
14
|
-
<span itemprop="jobTitle">Associate Head of Digital Library Initiatives</span> at
|
15
|
-
<span itemprop="affiliation" itemscope itemtype="http://schema.org/Library" itemid="http://lib.ncsu.edu">
|
16
|
-
<span itemprop="name">
|
17
|
-
<a itemprop="url" href="http://www.lib.ncsu.edu">NCSU Libraries</a>
|
18
|
-
</span>
|
19
|
-
</span>
|
20
|
-
</span>
|
21
|
-
</body>
|
22
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>itemref example from Microdata spec</title>
|
5
|
-
</head>
|
6
|
-
<body>
|
7
|
-
<div itemscope id="amanda" itemref="a b"></div>
|
8
|
-
<p id="a">Name: <span itemprop="name">Amanda</span></p>
|
9
|
-
<div id="b" itemprop="band" itemscope itemref="c"></div>
|
10
|
-
<div id="c">
|
11
|
-
<p>Band: <span itemprop="name">Jazz Band</span></p>
|
12
|
-
<p>Size: <span itemprop="size">12</span> players</p>
|
13
|
-
</div>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Jason Ronallo</title>
|
5
|
-
</head>
|
6
|
-
<body>
|
7
|
-
<span itemtype="http://schema.org/Person"
|
8
|
-
itemid="http://ronallo.com#me">
|
9
|
-
<a itemprop="url" href="http://twitter.com/ronallo">
|
10
|
-
<span itemprop="name">Jason Ronallo</span>
|
11
|
-
</a> is the
|
12
|
-
<span itemprop="jobTitle">Associate Head of Digital Library Initiatives</span> at
|
13
|
-
<span itemprop="affiliation" itemtype="http://schema.org/Library" itemid="http://lib.ncsu.edu">
|
14
|
-
<span itemprop="name">
|
15
|
-
<a itemprop="url" href="http://www.lib.ncsu.edu">NCSU Libraries</a>
|
16
|
-
</span>
|
17
|
-
</span>
|
18
|
-
</span>
|
19
|
-
</body>
|
20
|
-
</html>
|
Binary file
|
@@ -1,200 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Spree::BaseHelper, type: :helper do
|
4
|
-
include Spree::BaseHelper
|
5
|
-
|
6
|
-
let(:current_store){ create :store }
|
7
|
-
|
8
|
-
context "available_countries" do
|
9
|
-
let(:country) { create(:country) }
|
10
|
-
|
11
|
-
before do
|
12
|
-
3.times { create(:country) }
|
13
|
-
end
|
14
|
-
|
15
|
-
context "with no checkout zone defined" do
|
16
|
-
before do
|
17
|
-
Spree::Config[:checkout_zone] = nil
|
18
|
-
end
|
19
|
-
|
20
|
-
it "return complete list of countries" do
|
21
|
-
expect(available_countries.count).to eq(Spree::Country.count)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
context "with a checkout zone defined" do
|
26
|
-
context "checkout zone is of type country" do
|
27
|
-
before do
|
28
|
-
@country_zone = create(:zone, name: "CountryZone")
|
29
|
-
@country_zone.members.create(zoneable: country)
|
30
|
-
Spree::Config[:checkout_zone] = @country_zone.name
|
31
|
-
end
|
32
|
-
|
33
|
-
it "return only the countries defined by the checkout zone" do
|
34
|
-
expect(available_countries).to eq([country])
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
context "checkout zone is of type state" do
|
39
|
-
before do
|
40
|
-
state_zone = create(:zone, name: "StateZone")
|
41
|
-
state = create(:state, country: country)
|
42
|
-
state_zone.members.create(zoneable: state)
|
43
|
-
Spree::Config[:checkout_zone] = state_zone.name
|
44
|
-
end
|
45
|
-
|
46
|
-
it "return complete list of countries" do
|
47
|
-
expect(available_countries.count).to eq(Spree::Country.count)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
# Regression test for #1436
|
54
|
-
context "defining custom image helpers" do
|
55
|
-
let(:product) { mock_model(Spree::Product, images: [], variant_images: []) }
|
56
|
-
before do
|
57
|
-
Spree::Image.class_eval do
|
58
|
-
attachment_definitions[:attachment][:styles].merge!({very_strange: '1x1'})
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
it "should not raise errors when style exists" do
|
63
|
-
expect { very_strange_image(product) }.not_to raise_error
|
64
|
-
end
|
65
|
-
|
66
|
-
it "should raise NoMethodError when style is not exists" do
|
67
|
-
expect { another_strange_image(product) }.to raise_error(NoMethodError)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
context "link_to_tracking" do
|
72
|
-
it "returns tracking link if available" do
|
73
|
-
a = link_to_tracking_html(shipping_method: true, tracking: '123', tracking_url: 'http://g.c/?t=123').css('a')
|
74
|
-
|
75
|
-
expect(a.text).to eq '123'
|
76
|
-
expect(a.attr('href').value).to eq 'http://g.c/?t=123'
|
77
|
-
end
|
78
|
-
|
79
|
-
it "returns tracking without link if link unavailable" do
|
80
|
-
html = link_to_tracking_html(shipping_method: true, tracking: '123', tracking_url: nil)
|
81
|
-
expect(html.css('span').text).to eq '123'
|
82
|
-
end
|
83
|
-
|
84
|
-
it "returns nothing when no shipping method" do
|
85
|
-
html = link_to_tracking_html(shipping_method: nil, tracking: '123')
|
86
|
-
expect(html.css('span').text).to eq ''
|
87
|
-
end
|
88
|
-
|
89
|
-
it "returns nothing when no tracking" do
|
90
|
-
html = link_to_tracking_html(tracking: nil)
|
91
|
-
expect(html.css('span').text).to eq ''
|
92
|
-
end
|
93
|
-
|
94
|
-
def link_to_tracking_html(options = {})
|
95
|
-
node = link_to_tracking(double(:shipment, options))
|
96
|
-
Nokogiri::HTML(node.to_s)
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
# Regression test for #2396
|
101
|
-
context "meta_data_tags" do
|
102
|
-
it "truncates a product description to 160 characters" do
|
103
|
-
# Because the controller_name method returns "test"
|
104
|
-
# controller_name is used by this method to infer what it is supposed
|
105
|
-
# to be generating meta_data_tags for
|
106
|
-
text = FFaker::Lorem.paragraphs(2).join(" ")
|
107
|
-
@test = Spree::Product.new(description: text)
|
108
|
-
tags = Nokogiri::HTML.parse(meta_data_tags)
|
109
|
-
content = tags.css("meta[name=description]").first["content"]
|
110
|
-
assert content.length <= 160, "content length is not truncated to 160 characters"
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# Regression test for #5384
|
115
|
-
context "custom image helpers conflict with inproper statements" do
|
116
|
-
let(:product) { mock_model(Spree::Product, images: [], variant_images: []) }
|
117
|
-
before do
|
118
|
-
Spree::Image.class_eval do
|
119
|
-
attachment_definitions[:attachment][:styles].merge!({foobar: '1x1'})
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
it "should not raise errors when helper method called" do
|
124
|
-
expect { foobar_image(product) }.not_to raise_error
|
125
|
-
end
|
126
|
-
|
127
|
-
it "should raise NoMethodError when statement with name equal to style name called" do
|
128
|
-
expect { foobar(product) }.to raise_error(NoMethodError)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
context "pretty_time" do
|
133
|
-
it "prints in a format" do
|
134
|
-
expect(pretty_time(DateTime.new(2012, 5, 6, 13, 33))).to eq "May 06, 2012 1:33 PM"
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
describe "#display_price" do
|
139
|
-
let!(:product) { create(:product) }
|
140
|
-
let(:current_currency) { "USD" }
|
141
|
-
let(:current_price_options) { { tax_zone: current_tax_zone } }
|
142
|
-
|
143
|
-
context "when there is no current order" do
|
144
|
-
let (:current_tax_zone) { nil }
|
145
|
-
|
146
|
-
it "returns the price including default vat" do
|
147
|
-
expect(display_price(product)).to eq("$19.99")
|
148
|
-
end
|
149
|
-
|
150
|
-
context "with a default VAT" do
|
151
|
-
let(:current_tax_zone) { create(:zone_with_country, default_tax: true) }
|
152
|
-
let!(:tax_rate) do
|
153
|
-
create :tax_rate,
|
154
|
-
included_in_price: true,
|
155
|
-
zone: current_tax_zone,
|
156
|
-
tax_category: product.tax_category,
|
157
|
-
amount: 0.2
|
158
|
-
end
|
159
|
-
|
160
|
-
it "returns the price adding the VAT" do
|
161
|
-
expect(display_price(product)).to eq("$19.99")
|
162
|
-
end
|
163
|
-
end
|
164
|
-
end
|
165
|
-
|
166
|
-
context "with an order that has a tax zone" do
|
167
|
-
let(:current_tax_zone) { create(:zone_with_country) }
|
168
|
-
let(:current_order) { Spree::Order.new }
|
169
|
-
let(:default_zone) { create(:zone_with_country, default_tax: true) }
|
170
|
-
|
171
|
-
let!(:default_vat) do
|
172
|
-
create :tax_rate,
|
173
|
-
included_in_price: true,
|
174
|
-
zone: default_zone,
|
175
|
-
tax_category: product.tax_category,
|
176
|
-
amount: 0.2
|
177
|
-
end
|
178
|
-
|
179
|
-
context "that matches no VAT" do
|
180
|
-
it "returns the price excluding VAT" do
|
181
|
-
expect(display_price(product)).to eq("$16.66")
|
182
|
-
end
|
183
|
-
end
|
184
|
-
|
185
|
-
context "that matches a VAT" do
|
186
|
-
let!(:other_vat) do
|
187
|
-
create :tax_rate,
|
188
|
-
included_in_price: true,
|
189
|
-
zone: current_tax_zone,
|
190
|
-
tax_category: product.tax_category,
|
191
|
-
amount: 0.4
|
192
|
-
end
|
193
|
-
|
194
|
-
it "returns the price adding the VAT" do
|
195
|
-
expect(display_price(product)).to eq("$23.32")
|
196
|
-
end
|
197
|
-
end
|
198
|
-
end
|
199
|
-
end
|
200
|
-
end
|