Permalink
Browse files

fix a bug introduced in the last commit with notifier messages

  • Loading branch information...
1 parent 0eedf97 commit fcb8decb907a68e69b4dddc015c15dc7a1d0e5fa @zevarito committed Apr 14, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 lib/route_dog/templates/warning.html.erb
  2. +1 −0 test/support/assertions.rb
@@ -4,5 +4,5 @@
text-align: center; margin:0; position:absolute;
top:0; background: red; font-size: 18px;
font-weight: bold">
- <div style="display:block; color: #fff; font-size: 20px; margin: 20px 0 35px">#{no_test_message}</div>
+ <div style="display:block; color: #fff; font-size: 20px; margin: 20px 0 35px"><%= no_test_message %></div>
</div>
@@ -22,6 +22,7 @@ def assert_watched_routes_not_include(controller, action, method = :get)
def assert_notify_for(controller, action, method = :get)
html_notification = Nokogiri::HTML(response.body).search('div#route_dog_warning')
+ assert html_notification.text =~ /Has Not Integration Tests/
assert html_notification.any?, "Expected {:controller => :#{controller}, :action => :#{action}, :method => :#{method}} Notify That The Route Has Not Tests"
end

0 comments on commit fcb8dec

Please sign in to comment.