Sha256: fa874b475acd0d1f45857be82deaf6079dd536f84fc84233e51c0df476914ce7
Contents?: true
Size: 481 Bytes
Versions: 11
Compression:
Stored size: 481 Bytes
Contents
require 'minitest_helper' def it_does_not_leak_view_context 2.times do it "has an independent view context" do refute_equal :leaked, Draper::ViewContext.current Draper::ViewContext.current = :leaked end end end describe "A decorator test" do it_does_not_leak_view_context end describe "A controller test" do tests Class.new(ActionController::Base) it_does_not_leak_view_context end describe "A mailer test" do it_does_not_leak_view_context end
Version data entries
11 entries across 11 versions & 4 rubygems