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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d57de8386b9e985c1284f568a7ba7ca5f0a178a486a64c206407e46505e3123
|
4
|
+
data.tar.gz: 94581f0952f67fa36701754de74e8d08bf8e764abd645f139ce82a298aecc9aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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
|
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.
|
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-
|
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
|