Skip to content

Commit

Permalink
Changelog for #473.
Browse files Browse the repository at this point in the history
Also aligned the example with others in the spec.
  • Loading branch information
dchelimsky committed Jan 19, 2012
1 parent d5d3dfb commit ea2be20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Expand Up @@ -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

Expand Down
8 changes: 6 additions & 2 deletions spec/rspec/rails/matchers/route_to_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit ea2be20

Please sign in to comment.