Sha256: f15a51230e583604be7bf02a1439536b5a4a2cb9337fd7d67554968cef6a8fee

Contents?: true

Size: 744 Bytes

Versions: 12

Compression:

Stored size: 744 Bytes

Contents

# encoding: UTF-8

# Mutually exclusive with the Keynote::TestCase defined in
# keynote/testing/test_unit. This is kind of icky but consistent with how
# MT::R itself replaces the Rails test case classes.

require "minitest/rails"
require "keynote/testing/test_present_method"

module Keynote
  class TestCase < ::ActionView::TestCase
    include TestPresentMethod

    # describe SomePresenter do
    register_spec_type(self) do |desc|
      desc < Keynote::Presenter if desc.is_a?(Class)
    end

    # describe "SomePresenter" do
    register_spec_type(/presenter( ?test)?\z/i, self)

    # Don't try to include any particular helper, since we're not testing one
    def self.include_helper_modules!
      include _helpers
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
keynote-1.1.1 lib/keynote/testing/minitest_rails.rb
keynote-1.1.0 lib/keynote/testing/minitest_rails.rb
keynote-1.0.0 lib/keynote/testing/minitest_rails.rb
keynote-0.3.1 lib/keynote/testing/minitest_rails.rb
keynote-0.3.0 lib/keynote/testing/minitest_rails.rb
keynote-0.2.3 lib/keynote/testing/minitest_rails.rb
keynote-0.2.2 lib/keynote/testing/minitest_rails.rb
keynote-0.2.1 lib/keynote/testing/minitest_rails.rb
keynote-0.2.0 lib/keynote/testing/minitest_rails.rb
keynote-0.2.0pre3 lib/keynote/testing/minitest_rails.rb
keynote-0.2.0pre2 lib/keynote/testing/minitest_rails.rb
keynote-0.2.0pre1 lib/keynote/testing/minitest_rails.rb