Sha256: 9afbc2729bb1b836b4e763ea2c6329e78f314edba1233f800f85ee08412bdfe5
Contents?: true
Size: 494 Bytes
Versions: 2
Compression:
Stored size: 494 Bytes
Contents
describe SiteHub do describe '::build' do it 'gives you a configure sitehub to run in your config.ru' do allow_any_instance_of(SiteHub::Builder).to receive(:build).and_return(:sitehub) expect(described_class.build).to eq(:sitehub) end it 'passes your block on a sitehub builder' do block_called = false block = Proc.new do block_called = true end described_class.build(&block) expect(block_called).to eq(true) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.2 | spec/sitehub_spec.rb |
sitehub-0.4.1 | spec/sitehub_spec.rb |