spec/private/rails2_3/path_spec.rb in usher-0.5.6 vs spec/private/rails2_3/path_spec.rb in 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) route adding" do
@@ -11,6 +12,6 @@
it "shouldn't allow routes without a controller to be added" do
proc { route_set.add_route('/bad/route') }.should raise_error
end
-end
\ No newline at end of file
+end