Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changelog for #473.

Also aligned the example with others in the spec.
  • Loading branch information...
commit ea2be20ab3f46039f85a791c71f30cf31a1497cc 1 parent d5d3dfb
@dchelimsky dchelimsky authored
Showing with 9 additions and 2 deletions.
  1. +3 −0  Changelog.md
  2. +6 −2 spec/rspec/rails/matchers/route_to_spec.rb
View
3  Changelog.md
@@ -2,6 +2,9 @@
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.8.1...master)
+Enhancments
+* add description method to RouteToMatcher (John Wulff)
+
Bug fixes
* mock_model(XXX).as_null_object.unknown_method returns self again
View
8 spec/rspec/rails/matchers/route_to_spec.rb
@@ -4,9 +4,13 @@
include RSpec::Rails::Matchers::RoutingMatchers
include RSpec::Rails::Matchers::RoutingMatchers::RouteHelpers
+ def assert_recognizes(*)
+ # no-op
+ end
+
it "provides a description" do
- matcher = route_to 'these' => 'options'
- matcher.instance_variable_set(:@verb_to_path_map, { :get => 'path' })
+ matcher = route_to("these" => "options")
+ matcher.matches?(:get => "path")
matcher.description.should == "route {:get=>\"path\"} to {\"these\"=>\"options\"}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.