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

Version Path
sitehub-0.5.0.alpha12 spec/sitehub_spec.rb
sitehub-0.4.10 spec/sitehub_spec.rb
sitehub-0.5.0.alpha11 spec/sitehub_spec.rb
sitehub-0.5.0.alpha10 spec/sitehub_spec.rb
sitehub-0.5.0.alpha8 spec/sitehub_spec.rb
sitehub-0.5.0.alpha7 spec/sitehub_spec.rb
sitehub-0.5.0.alpha6 spec/sitehub_spec.rb
sitehub-0.5.0.alpha5 spec/sitehub_spec.rb
sitehub-0.5.0.alpha4 spec/sitehub_spec.rb
sitehub-0.5.0.alpha3 spec/sitehub_spec.rb
sitehub-0.5.0.alpha2 spec/sitehub_spec.rb
sitehub-0.4.9 spec/sitehub_spec.rb
sitehub-0.4.8 spec/sitehub_spec.rb
sitehub-0.4.7 spec/sitehub_spec.rb
sitehub-0.4.6 spec/sitehub_spec.rb
sitehub-0.4.3 spec/sitehub_spec.rb