solidus_sample 2.4.2 → 2.5.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9b6cef33278c16bf1701b766856772bdeda17237
4
- data.tar.gz: 487a6b7b63eaf741f0d9ccbf1a589e61a765ef05
2
+ SHA256:
3
+ metadata.gz: d87f5260cb9bc8048141e56fb5cf8548c28d6f24b736099328f9b4528108067d
4
+ data.tar.gz: bbe8120a5ae9ed9f2e71e55fc3767078fde2c141a263be5d2c00ddee43328c71
5
5
  SHA512:
6
- metadata.gz: b867daa2dc5b88b4457c3d33e3cd284c8ddf25727c116f5d0896cc7ebbeba7d1074236ac13eece3f316f01a09cfd54498db6bb03ed3374a7b2e988f51ece58c2
7
- data.tar.gz: f5372851c1f234a4177c058c03e13c2de1b91be5e084b6342fdc9f33865cac6fac61aa99a2eae42f000ccddbc8044483ac0f3af8f098dc51e9625114c827f54d
6
+ metadata.gz: bc86b5df105f6525f18a19319b4b943496fcda8473ac4ef95756b27d70e98e80efbfafc95b15dd6262d4b6f00e7654a0ebe00e7ce508530a28b3967e0c01fff9
7
+ data.tar.gz: cf144c20dc563ed49cbad0a462eb1c2e0f0347f5d833b4f7f493e8db9d35eed926bfb890a6103ba22cc4f97a316130784baf69d64259caf3f4830b771dd21b78
data/README.md CHANGED
@@ -13,10 +13,6 @@ bundle exec rake spree_sample:load
13
13
 
14
14
  ## Testing
15
15
 
16
- Create the test site
17
-
18
- bundle exec rake test_app
19
-
20
16
  Run the tests
21
17
 
22
- bundle exec rake spec
18
+ bundle exec rspec
data/Rakefile CHANGED
@@ -1,13 +1,14 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rspec/core/rake_task'
4
- require 'spree/testing_support/common_rake'
5
-
6
- desc "Generates a dummy app for testing"
7
- task :test_app do
8
- ENV['LIB_NAME'] = 'spree/sample'
9
- Rake::Task['common:test_app'].invoke
10
- end
4
+ require 'spree/testing_support/dummy_app/rake_tasks'
11
5
 
12
6
  RSpec::Core::RakeTask.new
13
7
  task default: :spec
8
+
9
+ DummyApp::RakeTasks.new(
10
+ gem_root: File.expand_path('../', __FILE__),
11
+ lib_name: 'solidus_sample'
12
+ )
13
+
14
+ task test_app: 'db:reset'
data/db/samples/stores.rb CHANGED
@@ -1,6 +1,8 @@
1
- Spree::Store.create!(
2
- name: "Sample Store",
3
- code: "sample-store",
4
- url: "solidus.example.com",
5
- mail_from_address: "store@example.com"
6
- )
1
+ unless Spree::Store.where(code: 'sample-store').exists?
2
+ Spree::Store.create!(
3
+ name: "Sample Store",
4
+ code: "sample-store",
5
+ url: "example.com",
6
+ mail_from_address: "store@example.com"
7
+ )
8
+ end
@@ -3,9 +3,7 @@ require 'spec_helper'
3
3
  describe "Load samples" do
4
4
  it "doesn't raise any error" do
5
5
  expect {
6
- load Rails.root + 'Rakefile'
7
- load Rails.root + 'db/seeds.rb'
8
-
6
+ Spree::Core::Engine.load_seed
9
7
  SpreeSample::Engine.load_samples
10
8
  }.to output.to_stdout
11
9
  end
data/spec/spec_helper.rb CHANGED
@@ -2,16 +2,15 @@
2
2
  # from the project root directory.
3
3
  ENV["RAILS_ENV"] ||= 'test'
4
4
 
5
- begin
6
- require File.expand_path("../dummy/config/environment", __FILE__)
7
- rescue LoadError
8
- $stderr.puts "Could not load dummy application. Please ensure you have run `bundle exec rake test_app`"
9
- exit 1
10
- end
5
+ require 'solidus_sample'
6
+ require 'spree/testing_support/dummy_app'
7
+ DummyApp.setup(
8
+ gem_root: File.expand_path('../../', __FILE__),
9
+ lib_name: 'solidus_sample'
10
+ )
11
11
 
12
12
  require 'rspec/rails'
13
- require 'ffaker'
14
- require 'spree_sample'
13
+ require 'database_cleaner'
15
14
 
16
15
  RSpec.configure do |config|
17
16
  config.color = true
@@ -32,9 +31,6 @@ RSpec.configure do |config|
32
31
  # instead of true.
33
32
  config.use_transactional_fixtures = false
34
33
 
35
- config.include FactoryGirl::Syntax::Methods
36
- config.fail_fast = ENV['FAIL_FAST'] || false
37
-
38
34
  config.example_status_persistence_file_path = "./spec/examples.txt"
39
35
 
40
36
  config.order = :random
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_sample
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.5.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2018-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -16,21 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.2
19
+ version: 2.5.0.beta1
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: 2.4.2
26
+ version: 2.5.0.beta1
27
27
  description: Sample data (including images) for use with Solidus.
28
28
  email: contact@solidus.io
29
29
  executables: []
30
30
  extensions: []
31
31
  extra_rdoc_files: []
32
32
  files:
33
- - Gemfile
34
33
  - LICENSE
35
34
  - README.md
36
35
  - Rakefile
@@ -103,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
102
  requirements:
104
103
  - none
105
104
  rubyforge_project:
106
- rubygems_version: 2.6.11
105
+ rubygems_version: 2.7.3
107
106
  signing_key:
108
107
  specification_version: 4
109
108
  summary: Sample data (including images) for use with Solidus.
data/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- eval(File.read(File.dirname(__FILE__) + '/../common_spree_dependencies.rb'))
2
-
3
- gem 'solidus_core', path: '../core'
4
-
5
- gemspec