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

Version Path
draper_new-3.0.0 spec/dummy/test/decorators/minitest/view_context_test.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/draper-2.1.0/spec/dummy/test/decorators/minitest/view_context_test.rb
draper-2.1.0 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-2.0.0 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.4.0 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.3.1 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.3.0 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.2.1 spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.2.0 spec/dummy/test/decorators/minitest/view_context_test.rb
jamesgolick-draper-1.1.1a spec/dummy/test/decorators/minitest/view_context_test.rb
draper-1.1.0 spec/dummy/test/decorators/minitest/view_context_test.rb