Sha256: 1220ab0d98a4b9c34ddec77967a97b5aea49acc2c8515f53c1e073ed4dbe011c

Contents?: true

Size: 538 Bytes

Versions: 10

Compression:

Stored size: 538 Bytes

Contents

require "test_helper"

module PushType
  describe Presentable do

    describe 'class methods' do
      it { Page.presenter_class_name.must_equal 'PagePresenter' }
      it { Page.presenter_class.must_be_instance_of Class }
    end

    describe 'instance methods' do
      let(:page) { Page.new FactoryGirl.attributes_for(:node) }
      it { page.presenter_class.must_be_instance_of Class }
      it { page.present!.must_be_instance_of Page }
      it { page.present!.class.ancestors.must_include PushType::Presenter }
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
push_type_core-0.5.1 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0.alpha.5 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0.alpha.4 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0.alpha.3 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0.alpha.2 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.5.0.alpha.1 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.4.0 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.4.0.beta.3 test/models/concerns/push_type/presentable_test.rb
push_type_core-0.3.3 test/models/concerns/push_type/presentable_test.rb