formality_level_spec.rb revision e4f36cc6b6d3d4c1bcc5de4a9d0fbfbfcb9ee922
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagherrequire 'spec_helper'
33396dc46ea52c18f47db1b5d590880806521005Sumit Bose it { should have_db_column(column).of_type(:text) }
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher it { should have_db_index(:name).unique(true) }
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher it { should allow_value('foo').for(:name) }
551aa6c36797ed720487f5974dcadabf19e6ff9fStephen Gallagher it { should_not allow_value('foo').for(:name) }
deeadf40db3a1eec64cf030e54afc4cb8612a8d5Lukas Slebodnik context 'when FormalityLevel without name is to be saved' do