Sha256: c476009ed8ee3b1d62785e236a3fa952392dd3d3f37e23255311aff75bda272c
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
require 'spec_helper' describe ActiveRoad::JunctionConditionnalCost do subject { create(:junction_conditionnal_cost) } it "should have tags" do subject.should respond_to(:tags) end it "should have a cost" do subject.should respond_to(:cost) end it "should have a junction" do subject.should respond_to(:junction_id) end describe "#start_physical_road" do let(:new_road){create(:physical_road)} it "should belongs to physical_road" do subject.update_attributes( :start_physical_road => new_road) subject.reload subject.start_physical_road_id = new_road.id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_road-0.0.2 | spec/models/active_road/junction_conditionnal_cost_spec.rb |