Skip to content

Commit

Permalink
Merge branch '2.x' into 2.x_fix/create_new_record_from_belongs_to_ass…
Browse files Browse the repository at this point in the history
…ociations
  • Loading branch information
Paul-Bob authored Nov 28, 2023
2 parents d476212 + 5dcb795 commit 7cdfe2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches:
- main
- 1.x
- 2.x
push:
branches:
- main
- 1.x
- 2.x

env:
RAILS_ENV: test
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/avo/templates/locales/avo.ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ar:
actions: أوامر
and_x_other_resources: و %{count} موارد أخرى
are_you_sure: هل أنت متأكد؟
are_you_sure_detach_item: هل أنت متأكد أنك تريد فصل هذا الـ٪{item}؟
are_you_sure_detach_item: هل أنت متأكد أنك تريد فصل هذا الـ%{item}؟
are_you_sure_you_want_to_run_this_option: هل أنت متأكد أنك تريد تشغيل هذا الخيار؟
attach: ربط
attach_and_attach_another: ربط وربط آخر
Expand Down
10 changes: 3 additions & 7 deletions spec/system/avo/actions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@

describe "redirects when no confirmation" do
it "redirects to hey page" do
no_confirmation = Sub::DummyAction.no_confirmation
original_dummy_action = Sub::DummyAction.dup

Sub::DummyAction.class_eval do
self.no_confirmation = true
Expand All @@ -152,12 +152,8 @@

expect(page).to have_text "hey en"


Sub::DummyAction.class_eval do
undef_method :redirect_handle
end

Sub::DummyAction.no_confirmation = no_confirmation
Sub.send(:remove_const, "DummyAction")
Sub.const_set("DummyAction", original_dummy_action)
end
end
# let!(:roles) { { admin: false, manager: false, writer: false } }
Expand Down

0 comments on commit 7cdfe2e

Please sign in to comment.