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

Implement or remove pending tests #4803

Merged
merged 20 commits into from
Apr 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary locales check in specs
We define the available locales in the test environment, so Spanish is
always available in this environment even if it isn't available in the
production environment.
  • Loading branch information
javierm committed Apr 7, 2022
commit 2927174e06698603c02ab19a574458e82056425f
5 changes: 1 addition & 4 deletions spec/system/verification/level_two_verification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
end

context "In Spanish, with no fallbacks" do
before do
skip unless I18n.available_locales.include?(:es)
allow(I18n.fallbacks).to receive(:[]).and_return([:es])
end
before { allow(I18n.fallbacks).to receive(:[]).and_return([:es]) }

scenario "Works normally" do
user = create(:user)
Expand Down