spec/private/grapher_spec.rb in usher-0.5.6 vs spec/private/grapher_spec.rb in usher-0.5.7
- old
+ new
@@ -1,8 +1,8 @@
-require 'lib/usher'
+require File.expand_path(File.join(File.dirname(__FILE__), "..", "spec_helper"))
+require "usher"
-
describe "Usher grapher" do
before(:each) do
@route_set = Usher.new(:generator => Usher::Util::Generators::URL.new)
@route_set.reset!
@@ -35,6 +35,6 @@
# route_set.add_route('/:a/:b', :b => /\d+/)
# route_set.generate_url(nil, {:a => 'A', :b => 'B'}).should == '/A/B'
# proc{ route_set.generate_url(nil, {:a => 'A', :b => 'B'})}.should raise_error Usher::ValidationException
#end
-end
\ No newline at end of file
+end