Sha256: 8bd27d1c9a3f4797432f4527dce5503501c7489207f6f94f52845795f429126d

Contents?: true

Size: 533 Bytes

Versions: 18

Compression:

Stored size: 533 Bytes

Contents

RSpec.describe Flipper::Exporter do
  describe ".build" do
    it "builds instance of exporter" do
      exporter = described_class.build(format: :json, version: 1)
      expect(exporter).to be_instance_of(Flipper::Exporters::Json::V1)
    end

    it "raises if format not found" do
      expect { described_class.build(format: :nope, version: 1) }.to raise_error(KeyError)
    end

    it "raises if version not found" do
      expect { described_class.build(format: :json, version: 0) }.to raise_error(KeyError)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/flipper/exporter_spec.rb
flipper-1.3.1 spec/flipper/exporter_spec.rb
flipper-1.3.0 spec/flipper/exporter_spec.rb
flipper-1.3.0.pre spec/flipper/exporter_spec.rb
flipper-1.2.2 spec/flipper/exporter_spec.rb
flipper-1.2.1 spec/flipper/exporter_spec.rb
flipper-1.2.0 spec/flipper/exporter_spec.rb
flipper-1.1.2 spec/flipper/exporter_spec.rb
flipper-1.1.1 spec/flipper/exporter_spec.rb
flipper-1.1.0 spec/flipper/exporter_spec.rb
flipper-1.0.0 spec/flipper/exporter_spec.rb
flipper-1.0.0.pre spec/flipper/exporter_spec.rb
flipper-0.28.3 spec/flipper/exporter_spec.rb
flipper-0.28.2 spec/flipper/exporter_spec.rb
flipper-0.28.1 spec/flipper/exporter_spec.rb
flipper-0.28.0 spec/flipper/exporter_spec.rb
flipper-0.27.1 spec/flipper/exporter_spec.rb
flipper-0.27.0 spec/flipper/exporter_spec.rb