test/controller.rb in nephos-server-0.2.4 vs test/controller.rb in nephos-server-0.3.1

- old
+ new

@@ -14,6 +14,12 @@ assert_raise do Nephos::Controller.new({}, {path: nil, args: nil}, params: nil) end assert_raise do Nephos::Controller.new({}, {path: nil, args: {}}, {params: {}}) end assert_raise do Nephos::Controller.new({}, {path: [], args: nil}, {params: {}}) end end + def test_controller_params + c = Nephos::Controller.new(env={}, {path: ["value"], args: {}}, {params: ["param"]}) + assert_equal "value", c.params[:param] + assert_equal "value", c.params["param"] + end + end