Skip to content

Commit dee7d0a

Browse files
committed
Use translation to check exercise creation.
1 parent 2e679b6 commit dee7d0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/system/exercises_system_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def self.❨╯°□°❩╯︵┻━┻
7575

7676
click_button I18n.t('shared.create', model: Exercise.model_name.human)
7777

78-
expect(page).to have_text 'Exercise has successfully been created.'
78+
expect(page).to have_text \
79+
I18n.t('shared.object_created', model: Exercise.model_name.human)
7980

8081
# Exercise is created with expected attributes
8182
expect(page).to have_text(title)

0 commit comments

Comments
 (0)