Sha256: 0392a7e461014a79755af19e61dd9b595c8794535e62425eb8bcb016daa70293
Contents?: true
Size: 489 Bytes
Versions: 16
Compression:
Stored size: 489 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 do block_called = true end described_class.build(&block) expect(block_called).to eq(true) end end end
Version data entries
16 entries across 16 versions & 1 rubygems