spec/private/rails2_3/generate_spec.rb in joshbuddy-usher-0.5.6 vs spec/private/rails2_3/generate_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"
route_set = Usher::Interface.for(:rails2_3)
describe "Usher (for rails 2.3) URL generation" do
@@ -23,6 +24,6 @@
route_set.add_route('/:controller/:action(.:format)')
route_set.generate({:action => 'thingy', :format => 'html'}, {:controller => 'sample', :action => 'index', :id => 123}, :generate).should == '/sample/thingy.html'
route_set.generate({:action => 'thingy'}, {:controller => 'sample', :action => 'index', :id => 123}, :generate).should == '/sample/thingy'
end
-end
\ No newline at end of file
+end