spec/private/rails2_2/recognize_spec.rb in joshbuddy-usher-0.5.6 vs spec/private/rails2_2/recognize_spec.rb in joshbuddy-usher-0.5.7

- old
+ new

@@ -1,7 +1,8 @@ -require File.join(File.dirname(__FILE__), 'compat') -require 'lib/usher' +require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper")) +require File.expand_path(File.join(File.dirname(__FILE__), 'compat')) +require "usher" require 'action_controller' route_set = Usher::Interface.for(:rails2_2) def build_request_mock(path, method, params) @@ -74,6 +75,6 @@ route_set.add_route('/:controller/:action') route_set.recognize(build_request_mock('/sample', :get, {:controller => 'sample', :action => 'index'})).should == SampleController end -end \ No newline at end of file +end