Sha256: bb65514f629d5fa792949325226bb7659619386a054dda9a1e0e177ddd079612
Contents?: true
Size: 850 Bytes
Versions: 4
Compression:
Stored size: 850 Bytes
Contents
require 'spec_helper' describe ClassifyConcern do subject { ClassifyConcern.new(curation_concern_type: curation_concern_type) } let(:curation_concern_type) { nil } describe 'with curation_concern_type: nil' do it 'is not valid' do expect(subject).to_not be_valid end it 'raises an error on .curation_concern_class' do expect{ subject.curation_concern_class }.to raise_error(RuntimeError) end end describe 'with curation_concern_type: "MockCurationConcern"' do let(:curation_concern_type) { "MockCurationConcern" } it 'is valid if curation_concern_type is from the right list' do expect(subject).to be_valid end it 'has a <MockCurationConcern> class for curation_concern_class' do expect(subject.curation_concern_class).to eq(MockCurationConcern) end end end
Version data entries
4 entries across 4 versions & 1 rubygems