solidus_support 0.1.2 → 0.1.3

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
2
  SHA1:
3
- metadata.gz: ccbc90492bc9a3ebe9a11dd637cd0ee5dd0c8726
4
- data.tar.gz: ba80e2c3258f3e0c852181bec212fc86be042951
3
+ metadata.gz: e02f1d121a5fdb96c6ac2770d1db4a464e17701c
4
+ data.tar.gz: 80fe033181815691ec0c9b5330553e76ef0bb2a9
5
5
  SHA512:
6
- metadata.gz: f86ddf26cb9a080dbf9b8eff06221ef756b8a31e4699758d28bc7b9ba2d0e3b17960a4797823e99f57e8425f9d3c02d41580c795f362555cc0d94fe2a66de39b
7
- data.tar.gz: ccabde73bf0be27a0227535c1c55435e157d2904808f6caafaf2fc0b710e04e799f13d78097015aa60a0921647cf19d16a7e54246f29dff3cf1000c3424fd40e
6
+ metadata.gz: b91fcb31fd86f080abf0e4bc573934c6fd0de9aab278c5b90b2b8edc2d03e3783199a4ffd1e10fbbb0c8d094cf313159bdfb2b0602b3cd67d2f7521da2df60f1
7
+ data.tar.gz: 4df0aa0b0bf0b8ffc91fd38154f236edbe6377915e4d64a20536b68415aac6cd81b16c2c3d0d30efb198111206d5c8ba46c36f6c8a17e0dcbce7db79a0b17371
@@ -0,0 +1,29 @@
1
+ # A basic feature_helper to be included as the starting point for extensions
2
+ #
3
+ # Can be required from an extension's spec/feature_helper.rb
4
+ #
5
+ # require 'solidus_support/extension/feature_helper.rb'
6
+ #
7
+
8
+ require 'solidus_support/extension/rails_helper'
9
+
10
+ require 'capybara-screenshot/rspec'
11
+ require 'capybara/poltergeist'
12
+
13
+ Capybara.register_driver :poltergeist do |app|
14
+ Capybara::Poltergeist::Driver.new(app, js_errors: true, timeout: 90)
15
+ end
16
+
17
+ Capybara.javascript_driver = :poltergeist
18
+ Capybara.default_max_wait_time = 10
19
+
20
+ require 'spree/testing_support/capybara_ext'
21
+
22
+ RSpec.configure do |config|
23
+ config.when_first_matching_example_defined(type: :feature) do
24
+ config.before :suite do
25
+ # Preload assets
26
+ Rails.application.precompiled_assets
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,40 @@
1
+ # A basic rails_helper to be included as the starting point for extensions
2
+ #
3
+ # Can be required from an extension's spec/rails_helper.rb
4
+ #
5
+ # require 'solidus_support/extension/rails_helper.rb'
6
+ #
7
+
8
+ require 'solidus_support/extension/spec_helper'
9
+
10
+ require 'rspec/rails'
11
+ require 'database_cleaner'
12
+ require 'ffaker'
13
+
14
+ require 'spree/testing_support/authorization_helpers'
15
+ require 'spree/testing_support/factories'
16
+ require 'spree/testing_support/url_helpers'
17
+
18
+ RSpec.configure do |config|
19
+ config.include FactoryGirl::Syntax::Methods
20
+
21
+ # visit spree.admin_path
22
+ # current_path.should eql(spree.products_path)
23
+ config.include Spree::TestingSupport::UrlHelpers
24
+
25
+ # Ensure Suite is set to use transactions for speed.
26
+ config.before :suite do
27
+ DatabaseCleaner.clean_with :truncation
28
+ end
29
+
30
+ # Before each spec check if it is a Javascript test and switch between using database transactions or not where necessary.
31
+ config.before :each do
32
+ DatabaseCleaner.strategy = RSpec.current_example.metadata[:js] ? :truncation : :transaction
33
+ DatabaseCleaner.start
34
+ end
35
+
36
+ # After each spec clean the database.
37
+ config.after :each do
38
+ DatabaseCleaner.clean
39
+ end
40
+ end
@@ -0,0 +1,19 @@
1
+ # A basic spec_helper to be included as the starting point for extensions
2
+ #
3
+ # Can be required from an extension's spec/spec_helper.rb
4
+ #
5
+ # require 'solidus_support/extension/spec_helper.rb'
6
+ #
7
+
8
+ RSpec.configure do |config|
9
+ config.filter_run focus: true
10
+ config.run_all_when_everything_filtered = true
11
+
12
+ config.mock_with :rspec
13
+ config.color = true
14
+
15
+ config.fail_fast = ENV['FAIL_FAST'] || false
16
+ config.order = 'random'
17
+
18
+ Kernel.srand config.seed
19
+ end
@@ -1,3 +1,3 @@
1
1
  module SolidusSupport
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-24 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,9 @@ files:
52
52
  - bin/console
53
53
  - bin/setup
54
54
  - lib/solidus_support.rb
55
+ - lib/solidus_support/extension/feature_helper.rb
56
+ - lib/solidus_support/extension/rails_helper.rb
57
+ - lib/solidus_support/extension/spec_helper.rb
55
58
  - lib/solidus_support/migration.rb
56
59
  - lib/solidus_support/version.rb
57
60
  - solidus_support.gemspec