Skip to content

Commit a4959b3

Browse files
authored
Merge pull request #69 from tvdeyen/fix-locale-specs
Fixes localization specs
2 parents 252d753 + 8597fe5 commit a4959b3

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)