Merge pull request #620 from tristandunn/td-notifications

Avoid overwriting notifications for template assertions.
This commit is contained in:
Steve Klabnik
2014-08-31 20:02:08 -04:00
3 changed files with 15 additions and 4 deletions

1
test/fixtures/template.html.erb vendored Normal file
View File

@@ -0,0 +1 @@
<p>Hello.</p>

View File

@@ -11,6 +11,11 @@ module ActionController
def render_text
render text: 'ok'
end
def render_template
prepend_view_path "./test/fixtures"
render template: "template"
end
end
tests MyController
@@ -56,6 +61,11 @@ module ActionController
end
assert_match 'assert_serializer only accepts a String, Symbol, Regexp, ActiveModel::Serializer, or nil', e.message
end
def test_does_not_overwrite_notification_subscriptions
get :render_template
assert_template "template"
end
end
end
end