Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul Spec Tests #576

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
465a4d3
Test spec fix.
MatthewKennedy Dec 26, 2022
bcdad52
Update rspec syntax
MatthewKennedy Dec 26, 2022
2a8ad72
Use locale.
MatthewKennedy Dec 26, 2022
020266e
Reset locale after test.
MatthewKennedy Dec 26, 2022
a27ec8a
Ensure locale is set to :en after tests.
MatthewKennedy Dec 26, 2022
f8b0e46
Test without spec
MatthewKennedy Dec 26, 2022
8a0e2aa
Admin Test
MatthewKennedy Dec 26, 2022
9cc23ed
Lint file.
MatthewKennedy Dec 26, 2022
d8a53fd
Lint file.
MatthewKennedy Dec 26, 2022
32b4829
Store artifacts.
MatthewKennedy Dec 26, 2022
b9c4022
Remove useless variable assignment.
MatthewKennedy Dec 26, 2022
d1f78ac
Add # frozen_string_literal: true
MatthewKennedy Dec 26, 2022
10a4c19
Remove duplicate check.
MatthewKennedy Dec 26, 2022
ab9af92
Ensure I18n.locale = :en
MatthewKennedy Dec 26, 2022
f0b8c50
Ensure en local is used.
MatthewKennedy Dec 26, 2022
de426ee
Lint file
MatthewKennedy Dec 26, 2022
0d62f2e
Lint file.
MatthewKennedy Dec 26, 2022
2b1c905
Lint file.
MatthewKennedy Dec 26, 2022
5d83015
Use css id
MatthewKennedy Dec 26, 2022
655e712
Use spree.admin_login_path(locale: 'en')
MatthewKennedy Dec 26, 2022
d76835d
Add current store
MatthewKennedy Dec 26, 2022
94b383b
Fix current_store
MatthewKennedy Dec 26, 2022
1dc4594
Lint code.
MatthewKennedy Dec 26, 2022
78f9a7e
Lint files.
MatthewKennedy Dec 26, 2022
27244b2
set default store.
MatthewKennedy Dec 26, 2022
1bd4a86
use describe it
MatthewKennedy Dec 26, 2022
3c621ca
Replace it
MatthewKennedy Dec 26, 2022
6407863
Lint file.
MatthewKennedy Dec 26, 2022
f7f3f2b
Lint file.
MatthewKennedy Dec 27, 2022
4b7651a
Fix admin sign out spec.
MatthewKennedy Dec 27, 2022
dc77e6f
Use admin Path
MatthewKennedy Dec 27, 2022
401744e
More descriptive log_out method.
MatthewKennedy Dec 27, 2022
55095f8
Lint file.
MatthewKennedy Dec 27, 2022
a95279e
Lint files.
MatthewKennedy Dec 27, 2022
89aef7c
Us it not scenario.
MatthewKennedy Dec 27, 2022
c0ce112
Update Rspec syntax (Replace background with before)
MatthewKennedy Dec 27, 2022
c57960f
Update Rspec syntax (replace 'scenario' with 'it')
MatthewKennedy Dec 27, 2022
1bd2235
Update Rspec syntax (replace 'given' with 'let')
MatthewKennedy Dec 27, 2022
dcc04cd
Rubocop lint files.
MatthewKennedy Dec 27, 2022
ae20ad9
Differentiate between admin and storefront test helpers
MatthewKennedy Dec 28, 2022
a9ec228
Fix target.
MatthewKennedy Dec 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint file.
  • Loading branch information
MatthewKennedy committed Dec 26, 2022
commit 2b1c9058f72fe16a8639c75e691574e2a841e06f
2 changes: 2 additions & 0 deletions spec/support/configuration_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ConfigurationHelpers
def allow_bypass_sign_in
Spree::Auth::Config.set(signout_after_password_change: false)
Expand Down