Permalink
Browse files

Merge pull request #278 from wyaeld/fix-partial-test

fix partial test modifying the global view path
  • Loading branch information...
nesquena committed Jun 29, 2012
2 parents 9a78dc8 + 1478f5c commit 960f1db06cde486f69de9a4ea486c01a0409724d
Showing with 4 additions and 1 deletion.
  1. +4 −1 test/partials_test.rb
View
@@ -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 960f1db

Please sign in to comment.