Sha256: 744a614fa2690ed250694912439afecffd83a0958d79efa36262bf96aec88a1d

Contents?: true

Size: 363 Bytes

Versions: 12

Compression:

Stored size: 363 Bytes

Contents

# encoding: utf-8
require "spec_helper"

describe ActiveModel::Name do
  before do
    FastGettext.current_cache = {}
  end

  describe 'human' do
    it "is translated through FastGettext" do
      name = ActiveModel::Name.new(CarSeat)
      name.should_receive(:_).with('Car seat').and_return('Autositz')
      name.human.should == 'Autositz'
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
gettext_i18n_rails-0.6.2 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.6.1 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.5.4 spec/gettext_i18n_rails/active_model_spec.rb
nulogy-gettext_i18n_rails-0.5.3.2 spec/gettext_i18n_rails/active_model_spec.rb
nulogy-gettext_i18n_rails-0.5.3.1 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.5.3 spec/gettext_i18n_rails/active_model_spec.rb
nulogy-gettext_i18n_rails-0.5.0.3 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.5.2 spec/gettext_i18n_rails/active_model_spec.rb
nulogy-gettext_i18n_rails-0.5.0.2 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.5.1 spec/gettext_i18n_rails/active_model_spec.rb
nulogy-gettext_i18n_rails-0.5.0.1 spec/gettext_i18n_rails/active_model_spec.rb
gettext_i18n_rails-0.5.0 spec/gettext_i18n_rails/active_model_spec.rb