Skip to content

Instantly share code, notes, and snippets.

@elia
Created July 19, 2015 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elia/1bd0b86a50e3eda7ce5f to your computer and use it in GitHub Desktop.
Save elia/1bd0b86a50e3eda7ce5f to your computer and use it in GitHub Desktop.
Failures:
1) Route#initialize finds named params in pattern
RSpec::Expectations::ExpectationNotMetError:
expected: ["bar"]
got: [["bar"]]
(compared using ==)
2) Route#initialize finds splatted params in pattern
RSpec::Expectations::ExpectationNotMetError:
expected: ["baz"]
got: [["baz"]]
(compared using ==)
3) Route#match returns a hash of named params for matching route
RSpec::Expectations::ExpectationNotMetError:
expected: {"first"=>"123"}
got: {["first"]=>"123"}
(compared using ==)
20 examples, 3 failures (time taken: 0.036)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment