spec/plugin/multi_route_spec.rb in roda-cj-0.9.5 vs spec/plugin/multi_route_spec.rb in roda-cj-0.9.6
- old
+ new
@@ -31,19 +31,19 @@
"foo"
end
end
r.get do
- route("get")
+ r.route("get")
r.is "b" do
"getb"
end
end
r.post do
- route("post")
+ r.route("post")
r.is "b" do
"postb"
end
end
@@ -85,17 +85,17 @@
it "handles subclassing correctly" do
@app = Class.new(@app)
@app.route do |r|
r.get do
- route("post")
+ r.route("post")
r.is "b" do
"1b"
end
end
r.post do
- route("get")
+ r.route("get")
r.is "b" do
"2b"
end
end