Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add translations for ActiveRecord models #180
Hey, @mgrachev! Sorry I haven't responded sooner.
Could you add some tests for this? Maybe something like this, in
it "honors model translations" do allow(I18n).to receive(:translate).with("customer").and_return("user") visit admin_customers_path sidebar = find(".sidebar__list") expect(sidebar).to have_link("Users") expect(page).to have_header("Users") end