spec/presenters/chouette/geometry/line_presenter_spec.rb in ninoxe-1.1.5 vs spec/presenters/chouette/geometry/line_presenter_spec.rb in ninoxe-1.2.0
- old
+ new
@@ -1,13 +1,13 @@
require 'spec_helper'
describe Chouette::Geometry::LinePresenter do
- let!(:line) { Factory(:line_with_stop_areas_having_parent) }
+ let!(:line) { create(:line_with_stop_areas_having_parent) }
subject { Chouette::Geometry::LinePresenter.new(line)}
describe "#routes_localized_commercials" do
it "should return 3 stop_areas" do
- subject.routes_localized_commercials(line.routes.first).size.should == 5
+ expect(subject.routes_localized_commercials(line.routes.first).size).to eq(10)
end
end
end