Sha256: 1dde0d288d6ad1df766b7a69e06eb0245902c8176e98158666fbde41ecbdaf70

Contents?: true

Size: 650 Bytes

Versions: 4

Compression:

Stored size: 650 Bytes

Contents

require "spec_helper"
require "cascade/registry"

describe Cascade::Registry do
  def described_class
    Cascade::Registry
  end

  it "creates new instance of default row processor" do
    mock(Cascade::RowProcessor).new
    described_class.row_processor
  end

  it "creates new instance of default error handler" do
    mock(Cascade::ErrorHandler).new
    described_class.error_handler
  end

  it "return default callable data saver" do
    assert_respond_to described_class.data_saver, :call
  end

  it "return default data provider" do
    assert_raises(Cascade::UnsupportedComponent) do
      described_class.data_provider
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cascade-rb-0.2.3 spec/lib/registry_spec.rb
cascade-rb-0.2.2 spec/lib/registry_spec.rb
cascade-rb-0.2.1 spec/lib/registry_spec.rb
cascade-rb-0.2.0 spec/lib/registry_spec.rb