Skip to content

Commit

Permalink
Merge pull request #69 from tvdeyen/fix-locale-specs
Browse files Browse the repository at this point in the history
Fixes localization specs
  • Loading branch information
tvdeyen authored Apr 12, 2018
2 parents 252d753 + 8597fe5 commit a4959b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ module Alchemy

describe ".human_rolename" do
it "return a translated role name" do
::I18n.locale = :de
expect(User.human_rolename('member')).to eq("Mitglied")
expect(User.human_rolename('member')).to eq("Member")
end
end

Expand Down Expand Up @@ -126,9 +125,8 @@ module Alchemy

describe "#human_roles_string" do
it "should return a humanized roles string." do
::I18n.locale = :de
user.alchemy_roles = ['member', 'admin']
expect(user.human_roles_string).to eq("Mitglied und Administrator")
expect(user.human_roles_string).to eq("Member and Administrator")
end
end

Expand Down

0 comments on commit a4959b3

Please sign in to comment.