Sha256: 5c8b9deb760d2f6b77a6874d4c4e840c6cc2957619a007b7403a2f9416083509

Contents?: true

Size: 923 Bytes

Versions: 4

Compression:

Stored size: 923 Bytes

Contents

require 'minitest_helper'

def it_is_a_presenter_test
  it "is a presenter test" do
    assert_kind_of StrongPresenter::TestCase, self
  end
end

def it_is_not_a_presenter_test
  it "is not a presenter test" do
    refute_kind_of StrongPresenter::TestCase, self
  end
end

ProductPresenter = Class.new(StrongPresenter::Presenter)
ProductsPresenter = Class.new(StrongPresenter::CollectionPresenter)

describe ProductPresenter do
  it_is_a_presenter_test
end

describe ProductsPresenter do
  it_is_a_presenter_test
end

describe "ProductPresenter" do
  it_is_a_presenter_test
end

describe "AnyPresenter" do
  it_is_a_presenter_test
end

describe "Any presenter" do
  it_is_a_presenter_test
end

describe "AnyPresenterTest" do
  it_is_a_presenter_test
end

describe "Any presenter test" do
  it_is_a_presenter_test
end

describe Object do
  it_is_not_a_presenter_test
end

describe "Nope" do
  it_is_not_a_presenter_test
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 spec/dummy/test/presenters/minitest/spec_type_test.rb
strong_presenter-0.2.1 spec/dummy/test/presenters/minitest/spec_type_test.rb
strong_presenter-0.2.0 spec/dummy/test/presenters/minitest/spec_type_test.rb
strong_presenter-0.1.0 spec/dummy/test/presenters/minitest/spec_type_test.rb