Sha256: 95d3777aa3cffa1682882691065663e064f324dd75b7d1cb645ebe57af85cecd

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Tag do
  it "should create translation class automatically if it doesn't exists" do
    Tag.translation_class.should_not be_nil
    Tag.translation_class.table_name.should == 'tag_translations'
  end
  
  it "should be" do
    tag = Tag.new(:locale => :en, :name => 'hello')
    tag.name.should be_nil
    I18n.locale = :en
    tag.name.should == 'hello'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_model_translations-0.1.3 spec/auto_generated_translation_classes_spec.rb