spec/galago/router/path_spec.rb in galago-router-0.0.2 vs spec/galago/router/path_spec.rb in galago-router-0.1.0
- old
+ new
@@ -16,9 +16,14 @@
it "does not recognize exact param matches" do
path = Router::Path.new('/users/:id')
expect(path).not_to be_recognizes '/users/:id'
end
+
+ it "does not recognize paths with newlines" do
+ path = Router::Path.new('/users/:id')
+ expect(path).not_to be_recognizes "\n/users/1"
+ end
end
describe "#to_s" do
it "returns the path as a string" do
path = Router::Path.new(:foo)