Sha256: 84ec79004897e3e91f505dca9ace679676f7b8e4f3609aa790586ca298317d02

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

describe ActiveRoad::PhysicalRoad do

  subject { create(:physical_road) }

  it "should validate objectid uniqueness" do
    other_road = build :physical_road, :objectid => subject.objectid 
    other_road.should_not be_valid
  end

  it "should be valid with a logical_road" do
    subject.logical_road = nil
    subject.should be_valid
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_road-0.0.2 spec/models/active_road/physical_road_spec.rb