spree_sample 3.1.14 → 3.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/db/samples/adjustments.rb +16 -14
- data/db/samples/assets.rb +74 -38
- data/db/samples/option_types.rb +12 -8
- data/db/samples/option_values.rb +34 -30
- data/db/samples/orders.rb +28 -24
- data/db/samples/payment_methods.rb +10 -14
- data/db/samples/payments.rb +13 -6
- data/db/samples/product_properties.rb +15 -15
- data/db/samples/products.rb +77 -90
- data/db/samples/prototypes.rb +10 -9
- data/db/samples/shipping_categories.rb +1 -1
- data/db/samples/shipping_methods.rb +26 -24
- data/db/samples/stock.rb +9 -2
- data/db/samples/tax_categories.rb +2 -2
- data/db/samples/tax_rates.rb +8 -7
- data/db/samples/taxonomies.rb +2 -2
- data/db/samples/taxons.rb +68 -66
- data/db/samples/variants.rb +77 -73
- data/lib/tasks/sample.rake +1 -1
- data/spec/lib/load_sample_spec.rb +18 -0
- data/spec/spec_helper.rb +23 -0
- data/spree_sample.gemspec +2 -2
- metadata +10 -8
data/lib/tasks/sample.rake
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Load samples" do
|
4
|
+
before do
|
5
|
+
# Seeds are only run for rake test_app so to allow this spec to pass without
|
6
|
+
# rerunning rake test_app every time we must load them in if not already.
|
7
|
+
unless Spree::Zone.find_by_name("North America")
|
8
|
+
load Rails.root + 'Rakefile'
|
9
|
+
load Rails.root + 'db/seeds.rb'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
it "doesn't raise any error" do
|
14
|
+
expect {
|
15
|
+
SpreeSample::Engine.load_samples
|
16
|
+
}.to_not raise_error
|
17
|
+
end
|
18
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file is copied to ~/spec when you run 'ruby script/generate rspec'
|
2
|
+
# from the project root directory.
|
3
|
+
ENV["RAILS_ENV"] ||= 'test'
|
4
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'ffaker'
|
7
|
+
require 'spree_sample'
|
8
|
+
require 'spree/testing_support/shoulda_matcher_configuration'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.color = true
|
12
|
+
config.fail_fast = ENV['FAIL_FAST'] || false
|
13
|
+
config.infer_spec_type_from_file_location!
|
14
|
+
config.mock_with :rspec
|
15
|
+
config.raise_errors_for_deprecations!
|
16
|
+
|
17
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
18
|
+
# examples within a transaction, comment the following line or assign false
|
19
|
+
# instead of true.
|
20
|
+
config.use_transactional_fixtures = true
|
21
|
+
|
22
|
+
config.include FactoryGirl::Syntax::Methods
|
23
|
+
end
|
data/spree_sample.gemspec
CHANGED
@@ -11,9 +11,9 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.author = 'Sean Schofield'
|
12
12
|
s.email = 'sean@spreecommerce.com'
|
13
13
|
s.homepage = 'http://spreecommerce.com'
|
14
|
-
s.license = 'BSD-3'
|
14
|
+
s.license = 'BSD-3-Clause'
|
15
15
|
|
16
|
-
s.files = `git ls-files`.split("\n")
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
17
|
s.require_path = 'lib'
|
18
18
|
s.requirements << 'none'
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.2.0.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.2.0.rc1
|
27
27
|
description: Required dependency for Spree
|
28
28
|
email: sean@spreecommerce.com
|
29
29
|
executables: []
|
@@ -90,10 +90,12 @@ files:
|
|
90
90
|
- lib/spree/sample.rb
|
91
91
|
- lib/spree_sample.rb
|
92
92
|
- lib/tasks/sample.rake
|
93
|
+
- spec/lib/load_sample_spec.rb
|
94
|
+
- spec/spec_helper.rb
|
93
95
|
- spree_sample.gemspec
|
94
96
|
homepage: http://spreecommerce.com
|
95
97
|
licenses:
|
96
|
-
- BSD-3
|
98
|
+
- BSD-3-Clause
|
97
99
|
metadata: {}
|
98
100
|
post_install_message:
|
99
101
|
rdoc_options: []
|
@@ -106,13 +108,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
108
|
version: '0'
|
107
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
110
|
requirements:
|
109
|
-
- - "
|
111
|
+
- - ">"
|
110
112
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
113
|
+
version: 1.3.1
|
112
114
|
requirements:
|
113
115
|
- none
|
114
116
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.5.1
|
116
118
|
signing_key:
|
117
119
|
specification_version: 4
|
118
120
|
summary: Sample data (including images) for use with Spree.
|