spree_dev_tools 0.0.3 → 0.0.4

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
  SHA256:
3
- metadata.gz: 498989fa83a9502993083b01782ce2f632d31e6b9b8b0a56766663998f43c8af
4
- data.tar.gz: 728008b2ba274ad4874d71913a9b67bd5c879acfcbc4d7362a8d510097c08172
3
+ metadata.gz: 4d57de8386b9e985c1284f568a7ba7ca5f0a178a486a64c206407e46505e3123
4
+ data.tar.gz: 94581f0952f67fa36701754de74e8d08bf8e764abd645f139ce82a298aecc9aa
5
5
  SHA512:
6
- metadata.gz: ad981b9a5b056155a7ff6496193638df72cd6ee344bedf27fea781de67396e1b6de44951519ed42e65117b190c9f1c5ed3735cb01fbed6a6ec999b05c47a833b
7
- data.tar.gz: d42a1ff5087a1acc502231b02db22f5d5f3296aa5bb7c0db834f230a4d83d6a912647d146d9d4334cb7347cb1344f504381c627128915fd4bf654ddfd9d1e1be
6
+ metadata.gz: b4e92a4fdef0f6b0e0095719d960088c77f8f8955a948de4a2f72f92f66e3444a50205e137f119470eaad9de5c59df2bef84ca8e6d7ab033bc4e543bb169ef46
7
+ data.tar.gz: 6d302e7a8997f4ce75a20b4ee150085fab9e1dd4226f61a935601a13db9129ea6f1b771ad91e247d0f56a208aa1f727d97fbb04e17caeb4cac89cea45560d619
@@ -27,6 +27,8 @@ require 'spree/testing_support/controller_requests'
27
27
  require 'spree/testing_support/flash'
28
28
  require 'spree/testing_support/url_helpers'
29
29
  require 'spree/testing_support/order_walkthrough'
30
+ require 'spree/testing_support/auth_helpers'
31
+ require 'spree/testing_support/checkout_helpers'
30
32
  require 'spree/testing_support/caching'
31
33
 
32
34
  # API v2 helpers
@@ -59,6 +61,9 @@ RSpec.configure do |config|
59
61
  config.include Spree::TestingSupport::Preferences
60
62
  config.include Spree::TestingSupport::Flash
61
63
 
64
+ config.include Spree::TestingSupport::AuthHelpers, type: :feature
65
+ config.include Spree::TestingSupport::CheckoutHelpers, type: :feature
66
+
62
67
  config.before :each do
63
68
  Rails.cache.clear
64
69
  reset_spree_preferences do |config|
@@ -72,7 +77,7 @@ RSpec.configure do |config|
72
77
  @request.env['devise.mapping'] = Devise.mappings[:spree_user]
73
78
  end
74
79
 
75
- config.include Devise::TestHelpers, type: :controller
80
+ config.include Devise::Test::ControllerHelpers, type: :controller
76
81
 
77
82
  config.include Warden::Test::Helpers
78
83
  config.before :suite do
@@ -0,0 +1,13 @@
1
+ module AuthenticationHelpers
2
+ def sign_in_as!(user)
3
+ visit '/login'
4
+ fill_in 'Email', with: user.email
5
+ fill_in 'Password', with: 'secret'
6
+ click_button 'Log in'
7
+ end
8
+ end
9
+
10
+ RSpec.configure do |config|
11
+ config.include AuthenticationHelpers, type: :feature
12
+ config.include Rack::Test::Methods, type: :feature
13
+ end
@@ -10,7 +10,7 @@ module SpreeDevTools
10
10
  module VERSION
11
11
  MAJOR = 0
12
12
  MINOR = 0
13
- TINY = 3
13
+ TINY = 4
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_dev_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spark Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-17 00:00:00.000000000 Z
11
+ date: 2020-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -303,12 +303,12 @@ files:
303
303
  - README.md
304
304
  - lib/spree_dev_tools.rb
305
305
  - lib/spree_dev_tools/rspec/spec_helper.rb
306
+ - lib/spree_dev_tools/rspec/support/authentication_helpers.rb
306
307
  - lib/spree_dev_tools/rspec/support/capybara.rb
307
308
  - lib/spree_dev_tools/rspec/support/database_cleaner.rb
308
309
  - lib/spree_dev_tools/rspec/support/factory_bot.rb
309
310
  - lib/spree_dev_tools/rspec/support/spree_cart.rb
310
311
  - lib/spree_dev_tools/version.rb
311
- - spree_dev_tools-0.0.1.rc1.gem
312
312
  - spree_dev_tools.gemspec
313
313
  homepage: https://github.com/spree/spree_dev_tools
314
314
  licenses:
Binary file