spec/private/path_spec.rb in usher-0.8.0 vs spec/private/path_spec.rb in usher-0.8.1
- old
+ new
@@ -34,10 +34,10 @@
it "should allow named routes to be added" do
route_set.add_named_route(:route, '/bad/route', :controller => 'sample').should == route_set.named_routes[:route]
end
- it "should allow named routes to be added" do
+ it "should allow named routes to be deleted" do
route_set.add_named_route(:route, '/bad/route', :controller => 'sample').should == route_set.named_routes[:route]
route_set.route_count.should == 1
route_set.named_routes.size == 1
route_set.delete_named_route(:route, '/bad/route', :controller => 'sample')
route_set.route_count.should == 0