diff options
| author | Marc Florisson | 2012-06-27 15:09:35 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-06-27 15:09:35 +0200 |
| commit | a96398d24c195c0224e985be9a12b8bd12f76143 (patch) | |
| tree | b3c14c57fb67c50468ce0e77558c74b592b22b09 /spec/controllers | |
| parent | b9e5f8f5dd642e7efd7969a3dd1571edea2facb8 (diff) | |
| parent | d3f748e11b0dd11a3678aeb45dae8143124653e7 (diff) | |
| download | chouette-core-a96398d24c195c0224e985be9a12b8bd12f76143.tar.bz2 | |
Merge branch 'master' of chouette.dryade.priv:/srv/git/chouette2
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/routes_controller_spec.rb | 3 | ||||
| -rw-r--r-- | spec/controllers/stop_points_controller_spec.rb | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb index 92bcbf4a8..9356e1a9a 100644 --- a/spec/controllers/routes_controller_spec.rb +++ b/spec/controllers/routes_controller_spec.rb @@ -3,8 +3,7 @@ require 'spec_helper' describe RoutesController do login_user - let!(:referential) { create(:referential).switch } - let!(:route) { referential; Factory(:route) } + let!(:route) { Factory(:route) } it { should be_kind_of(ChouetteController) } diff --git a/spec/controllers/stop_points_controller_spec.rb b/spec/controllers/stop_points_controller_spec.rb index b6c9e5dfa..ef63ae613 100644 --- a/spec/controllers/stop_points_controller_spec.rb +++ b/spec/controllers/stop_points_controller_spec.rb @@ -3,8 +3,7 @@ require 'spec_helper' describe StopPointsController do login_user - let!(:referential) { create(:referential).switch } - let!(:route) { referential; Factory(:route) } + let!(:route) { Factory(:route) } let(:permutated_stop_point_ids) { old_stop_point_ids = route.stop_points.map(&:id) old_stop_point_ids.permutation.to_a.select { |permutated| permutated != old_stop_point_ids}.first |
