Sha256: 78a90080207271374b836e3601344ba99cb1203ae7dfcb42f604746a7d3132f5
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' describe Adamantium::Freezer, '.get' do subject { object.get(name) } let(:object) { described_class } context 'with :deep' do let(:name) { :deep } it { should be(Adamantium::Freezer::Deep) } end context 'with :noop' do let(:name) { :noop } it { should be(Adamantium::Freezer::Noop) } end context 'with :flat' do let(:name) { :flat } it { should be(Adamantium::Freezer::Flat) } end context 'with unknown name' do let(:name) { :other } it 'should raise error' do expect { subject }.to raise_error(described_class::UnknownFreezerError, 'Freezer with name :other is unknown') end end end
Version data entries
4 entries across 4 versions & 1 rubygems