Sha256: f103e0ca3c3a0556779d06131aefc9d5f8b0772cb766dde1af8b6e29cac124fe

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ninoxe-1.2.3 spec/presenters/chouette/geometry/line_presenter_spec.rb
ninoxe-1.2.0 spec/presenters/chouette/geometry/line_presenter_spec.rb