ninoxe 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/db/migrate/20130710122648_set_accessibiliity_to_existing_stop_area.rb +4 -9
- data/lib/ninoxe/version.rb +1 -1
- metadata +87 -201
- data/app/models/chouette/mobility_need.rb +0 -4
- data/app/models/chouette/suitability.rb +0 -5
- data/spec/dummy/README.rdoc +0 -261
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/config/application.rb +0 -56
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -9
- data/spec/dummy/config/environment.rb +0 -7
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/initializers/active_record.rb +0 -2
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/models/chouette/access_link_spec.rb +0 -78
- data/spec/models/chouette/access_point_spec.rb +0 -193
- data/spec/models/chouette/active_record_spec.rb +0 -121
- data/spec/models/chouette/area_type_spec.rb +0 -53
- data/spec/models/chouette/company_spec.rb +0 -51
- data/spec/models/chouette/connection_link_spec.rb +0 -56
- data/spec/models/chouette/direction_spec.rb +0 -60
- data/spec/models/chouette/exporter_spec.rb +0 -28
- data/spec/models/chouette/file_validator_spec.rb +0 -28
- data/spec/models/chouette/group_of_line_spec.rb +0 -31
- data/spec/models/chouette/journey_pattern_spec.rb +0 -62
- data/spec/models/chouette/line_spec.rb +0 -106
- data/spec/models/chouette/loader_spec.rb +0 -69
- data/spec/models/chouette/network_spec.rb +0 -22
- data/spec/models/chouette/object_id_spec.rb +0 -146
- data/spec/models/chouette/route_spec.rb +0 -159
- data/spec/models/chouette/stop_area_spec.rb +0 -354
- data/spec/models/chouette/stop_point_spec.rb +0 -39
- data/spec/models/chouette/time_table_spec.rb +0 -372
- data/spec/models/chouette/transport_mode_spec.rb +0 -64
- data/spec/models/chouette/vehicle_journey_at_stop_spec.rb +0 -46
- data/spec/models/chouette/vehicle_journey_spec.rb +0 -204
- data/spec/presenters/chouette/geometry/general_presenter.rb +0 -1
- data/spec/presenters/chouette/geometry/line_presenter_spec.rb +0 -13
- data/spec/spec_helper.rb +0 -45
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Chouette::Geometry::LinePresenter do
|
4
|
-
let!(:line) { Factory(:line_with_stop_areas_having_parent) }
|
5
|
-
subject { Chouette::Geometry::LinePresenter.new(line)}
|
6
|
-
|
7
|
-
describe "#routes_localized_commercials" do
|
8
|
-
it "should return 3 stop_areas" do
|
9
|
-
subject.routes_localized_commercials(line.routes.first).size.should == 5
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
data/spec/spec_helper.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# Configure Rails Envinronment
|
2
|
-
ENV["RAILS_ENV"] = "test"
|
3
|
-
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
-
|
5
|
-
require 'rspec/rails'
|
6
|
-
require 'rspec/autorun'
|
7
|
-
|
8
|
-
require 'shoulda-matchers'
|
9
|
-
require 'factory_girl_rails'
|
10
|
-
|
11
|
-
require 'geo_ruby'
|
12
|
-
|
13
|
-
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
14
|
-
|
15
|
-
# Requires supporting ruby files with custom matchers and macros, etc,
|
16
|
-
# in spec/support/ and its subdirectories.
|
17
|
-
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
18
|
-
Dir[File.join(ENGINE_RAILS_ROOT, "lib/factories/**/*.rb")].each {|f| require f }
|
19
|
-
|
20
|
-
RSpec.configure do |config|
|
21
|
-
# == Mock Framework
|
22
|
-
#
|
23
|
-
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
24
|
-
#
|
25
|
-
# config.mock_with :mocha
|
26
|
-
# config.mock_with :flexmock
|
27
|
-
# config.mock_with :rr
|
28
|
-
config.mock_with :rspec
|
29
|
-
|
30
|
-
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
31
|
-
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
32
|
-
|
33
|
-
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
34
|
-
# examples within a transaction, remove the following line or assign false
|
35
|
-
# instead of true.
|
36
|
-
config.use_transactional_fixtures = true
|
37
|
-
|
38
|
-
# If true, the base class of anonymous controllers will be inferred
|
39
|
-
# automatically. This will be the default behavior in future versions of
|
40
|
-
# rspec-rails.
|
41
|
-
config.infer_base_class_for_anonymous_controllers = false
|
42
|
-
|
43
|
-
end
|
44
|
-
|
45
|
-
|