Skip to content

Commit 8597fe5

Browse files
committed
Fixes localization specs
We do not have a German localization available in the dummy app. Only English.
1 parent 252d753 commit 8597fe5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

spec/models/user_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ module Alchemy
8383

8484
describe ".human_rolename" do
8585
it "return a translated role name" do
86-
::I18n.locale = :de
87-
expect(User.human_rolename('member')).to eq("Mitglied")
86+
expect(User.human_rolename('member')).to eq("Member")
8887
end
8988
end
9089

@@ -126,9 +125,8 @@ module Alchemy
126125

127126
describe "#human_roles_string" do
128127
it "should return a humanized roles string." do
129-
::I18n.locale = :de
130128
user.alchemy_roles = ['member', 'admin']
131-
expect(user.human_roles_string).to eq("Mitglied und Administrator")
129+
expect(user.human_roles_string).to eq("Member and Administrator")
132130
end
133131
end
134132

0 commit comments

Comments
 (0)