Sha256: 1bbb0eb875dab5bdf7b28a597ecc299889e49f7ce514479cbd6cd54320e9c592
Contents?: true
Size: 726 Bytes
Versions: 8
Compression:
Stored size: 726 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
8 entries across 8 versions & 1 rubygems