Sha256: b57edab02ae6f7bd1a4c4e4aa742cf1faca5250d612b6ca8a13692ff8e529ad2
Contents?: true
Size: 585 Bytes
Versions: 4
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' describe HashPresenter do it 'should present hashes' do hp = HashPresenter.present({ a: 1 }) expect(hp.a).to eq(1) end it 'should not accept not Hashes' do expect(->{ HashPresenter.present('Hash').to raise_error(ArgumentError) }) end it 'should get an observable presenter' do hp = HashPresenter.present({ }, :observable) expect(hp).to be_a(HashPresenter::Observable) end it 'should get a cached presenter' do hp = HashPresenter.present({ }, :cached) expect(hp).to be_a(HashPresenter::Cached) end end
Version data entries
4 entries across 4 versions & 1 rubygems