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