Sha256: a6d7a60615ec036f80974a6ff19a93020746cb966d4dcc6ce4fe1c0dd7cedadd
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
require 'spec_helper' describe 'ColumnDefaultDuck' do it "should raise an error if we try to initialise ranked_model on a column with a default value" do expect { class ColumnDefaultDuck < ActiveRecord::Base include RankedModel ranks :size, :with_same => :pond end }.to raise_error(RankedModel::NonNilColumnDefault, 'Your ranked model column "size" must not have a default value in the database.') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ranked-model-0.4.3 | spec/duck-model/column_default_ducks_spec.rb |