Sha256: 1663a35cfe71c2a6860d480b4b215472f7d74a4be7530577963255e42c63dc88

Contents?: true

Size: 360 Bytes

Versions: 9

Compression:

Stored size: 360 Bytes

Contents

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

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

  it "should be aliased by .with_datt_key" do
    @page.add_dynamic_attribute(:price, "float")
    Page.with_dynamic_attribute_key(:price).should == Page.with_datt_key(:price)
  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_key_spec.rb
datts_right-0.0.31 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.30 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.29 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.28 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.27 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.26 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.25 spec/datts_right/with_dynamic_attribute_key_spec.rb
datts_right-0.0.24 spec/datts_right/with_dynamic_attribute_key_spec.rb