test/unit/router_tests.rb in deas-0.19.0 vs test/unit/router_tests.rb in deas-0.20.0

- old
+ new

@@ -106,9 +106,18 @@ route.validate! assert_not_nil route.handler_class end + should "instance eval any given block" do + router = Deas::Router.new do + get('/things', 'ListThings') + end + + assert_equal 1, router.routes.size + assert_instance_of Deas::Route, router.routes.first + end + end class NamedUrlTests < BaseTests desc "when using named urls" setup do