Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix partial test modifying the global view path without resetting its…

… change, causing render_test to fail
  • Loading branch information...
commit 1478f5c9f8f26c6f9450bfcc3481e01d16df854b 1 parent 9a78dc8
@wyaeld wyaeld authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/partials_test.rb
View
5 test/partials_test.rb
@@ -84,6 +84,9 @@ class TestPartial
asserts('detects file.json.rabl first') { topic }.equals do
["content2\n", (tmp_path + 'test.json.rabl').to_s]
end
- teardown { Object.send(:remove_const, :Sinatra) }
+ teardown do
+ Object.send(:remove_const, :Sinatra)
+ Rabl.configuration.view_paths = []
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.