Sha256: b117dd08afeb293ace438fed3034e93512398763df2e0849f7cce73305756aac
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' require 'fixtures/components/foo/models/welsh' describe Alephant::Views::Base do let(:base_path) do File.join( File.dirname(__FILE__), 'fixtures', 'components', 'foo' ) end describe "t(key, param{})" do it "Translates a key for the default locale" do Alephant::Renderer.create('foo', base_path, :model) expect(subject.t('bar')).to eq('Translation') end it "Translates a key for an overridden locale" do Alephant::Renderer.create('welsh', base_path, :model) expect(Fixtures::Welsh.new.t('bar')).to eq('Welsh Translation') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-renderer-0.0.9 | spec/views_base_spec.rb |
alephant-renderer-0.0.8 | spec/views_base_spec.rb |
alephant-renderer-0.0.7 | spec/views_base_spec.rb |