test/dummy/vendor/wagons/superliner/test/controllers/cities_controller_test.rb in wagons-0.2.2 vs test/dummy/vendor/wagons/superliner/test/controllers/cities_controller_test.rb in wagons-0.3.0

- old
+ new

@@ -1,12 +1,10 @@ require 'test_helper' class CitiesControllerTest < ActionController::TestCase - - test "wagon view paths preceed application view paths" do - paths = @controller.view_paths.collect {|p| p } - i_app = paths.index {|p| p.to_s.ends_with?('/dummy/app/views') } - i_wagon = paths.index {|p| p.to_s.ends_with?('/superliner/app/views') } + test 'wagon view paths preceed application view paths' do + paths = @controller.view_paths.map { |p| p } + i_app = paths.index { |p| p.to_s.ends_with?('/dummy/app/views') } + i_wagon = paths.index { |p| p.to_s.ends_with?('/superliner/app/views') } assert i_wagon < i_app end - -end \ No newline at end of file +end