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