Permalink
Browse files

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

… change, causing render_test to fail
  • Loading branch information...
1 parent 9a78dc8 commit 1478f5c9f8f26c6f9450bfcc3481e01d16df854b @wyaeld wyaeld committed Jun 29, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit 1478f5c

Please sign in to comment.