Sha256: c4897136f0d97bd4b45c4ccb615bf59c28f19380694d7eddef624113f215c869

Contents?: true

Size: 511 Bytes

Versions: 6

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

describe Building do
  before(:each) do
    @building = Building.new
  end


  it "should fail validations on an empty county" do
    @building.county = nil
    @building.should have(1).error_on(:county)
  end

  it "should fail validations on a bad county" do
    @building.county = "Orlando"
    @building.should have(1).error_on(:county)
  end

  it "should pass validations on a good county" do
    @building.county = "Orange"
    @building.should have(0).error_on(:county)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
format_validators-0.0.8 spec/validators/florida_counties_integration_spec.rb
format_validators-0.0.7 spec/validators/florida_counties_integration_spec.rb
format_validators-0.0.6 spec/validators/florida_counties_integration_spec.rb
format_validators-0.0.5 spec/validators/florida_counties_integration_spec.rb
format_validators-0.0.4 spec/validators/florida_counties_integration_spec.rb
format_validators-0.0.3 spec/validators/florida_counties_integration_spec.rb