Sha256: e98bbf6518e917ff19158dc73fc52b5f30b6c430b26971ad2ddeb9c84d6f538a

Contents?: true

Size: 366 Bytes

Versions: 9

Compression:

Stored size: 366 Bytes

Contents

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

describe ".with_dynamic_attribute_type" do
  before do
    reset_database
    @page = Page.create
  end

  it "should be aliased by .with_datt_type" do
    @page.add_dynamic_attribute(:price, "float")
    Page.with_dynamic_attribute_type("float").should == Page.with_datt_type("float")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datts_right-0.0.32 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.31 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.30 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.29 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.28 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.27 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.26 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.25 spec/datts_right/with_dynamic_attribute_type_spec.rb
datts_right-0.0.24 spec/datts_right/with_dynamic_attribute_type_spec.rb