Sha256: 5740964b7f9b8d0731b4e074baea005450e1d5ff13cec258fcd534cd07ae6081
Contents?: true
Size: 548 Bytes
Versions: 34
Compression:
Stored size: 548 Bytes
Contents
require "rails_helper" RSpec.describe Dorsale::ModelI18n, type: :model do it "should translate model name on class" do expect(User.t).to eq "Utilisateur" expect(User.ts).to eq "Utilisateurs" end it "should translate model name on instances" do expect(User.new.t).to eq "Utilisateur" expect(User.new.ts).to eq "Utilisateurs" end it "should translate attributes on class" do expect(User.t :name).to eq "Nom" end it "should translate attributes on instances" do expect(User.new.t :name).to eq "Nom" end end
Version data entries
34 entries across 34 versions & 1 rubygems