Sha256: 89475e0256967d860669e0fe6fde288dd7696265df3a33e62adb28343daf77b7
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
describe GitOperation do before :each do @operation = GitOperation.new end describe "unnamed SCM operation", :shared => true do before :each 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-validations-0.10.1 | spec/integration/required_field_validator/shared_examples.rb |
dm-validations-0.10.0 | spec/integration/required_field_validator/shared_examples.rb |