Sha256: 2b73f01b362870991f532bcb8f322e737dd97ad65180b44e550c7f95b1be9b72
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe ActiveRoad::JunctionConditionnalCost, :type => :model do subject { create(:junction_conditionnal_cost) } it "should have tags" do expect(subject).to respond_to(:tags) end it "should have a cost" do expect(subject).to respond_to(:cost) end it "should have a junction" do expect(subject).to 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.3 | spec/models/active_road/junction_conditionnal_cost_spec.rb |