Sha256: 32d435f9e31fe35cd4923f6dc95910ee18737baf9cffa23a01dae4b71c63b2d2
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
module FlipFab describe Persistence do let(:feature_name) { :example_test } let(:context) { double(:context) } subject { described_class.new feature_name, context } describe '.new' do it 'assigns the feature name' do expect(subject.feature_name).to eq(:example_test) end it 'assigns the context' do expect(subject.context).to eq(context) end end describe '#read' do it 'is not implemented' do expect{ subject.read }.to raise_error NotImplementedError end end describe '#write' do it 'is not implemented' do expect{ subject.write feature_name }.to raise_error NotImplementedError end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
flip_fab-1.0.1 | spec/lib/flip_fab/persistence_spec.rb |
flip_fab-1.0.0 | spec/lib/flip_fab/persistence_spec.rb |
flip_fab-0.0.1 | spec/lib/flip_fab/persistence_spec.rb |