Sha256: 1d0a9ada885136876dbbca3d8615440caba6d407aaacd57e3c4e92a4d9d39bf0
Contents?: true
Size: 569 Bytes
Versions: 16
Compression:
Stored size: 569 Bytes
Contents
describe 'GitOperation' do before do GitOperation.auto_migrate! @operation = GitOperation.new end describe "unnamed SCM operation", :shared => true do before do @operation.name = nil @operation.valid? end it "is not valid" do @operation.should_not be_valid end it "is not valid in default validation context" do @operation.should_not be_valid(:default) end it "points to blank name in the error message" do @operation.errors.on(:name).should == [ 'Name must not be blank' ] end end end
Version data entries
16 entries across 16 versions & 3 rubygems