Sha256: 7e6b917c03ce46e7a55af36791259931b86f67c5375bb06886f7cbc5b889885c
Contents?: true
Size: 400 Bytes
Versions: 10
Compression:
Stored size: 400 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 if ActiveRecord::VERSION::MAJOR >= 3
Version data entries
10 entries across 10 versions & 1 rubygems