aboutsummaryrefslogtreecommitdiffstats
path: root/spec/presenters/chouette/geometry/line_presenter_spec.rb
blob: c1432cf57591727aa96e09ed4426e4f74fa4401c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'spec_helper'

describe Chouette::Geometry::LinePresenter do
  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
      expect(subject.routes_localized_commercials(line.routes.first).size).to eq(10)
    end
  end
end