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