Sha256: a08362b00463b783e93ce0364325177ab8eab007ab85b763d181b743be6fb6dc
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
require 'spec_helper' describe "is_localizable with no options" do before :each do @i = Item.create @l = Language.create :code => 'en', :name => 'English' @t = ItemTranslation.new :item => @i, :language => @l end it "should belong_to a resource" do @t.respond_to?(:item).should == true @t.item.should be_instance_of(Item) end it "should belong_to a language" do @t.respond_to?(:language).should == true @t.language.should be_instance_of(Language) @t.language.code.should == 'en' @t.language.name.should == 'English' end it "should store properties defined inside the block in the translations resource" do @t.respond_to?(:name).should == true @t.respond_to?(:desc).should == true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-is-localizable-1.0.0 | spec/unit/is_localizable_spec.rb |
dm-is-localizable-0.10.1 | spec/unit/is_localizable_spec.rb |