Sha256: c15ff08de7806bd89fd9d87effa6f30f97134925c5d0dc6cd91d51e78130a1db
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
class SiteHub class Cookie describe Flag do let(:name) { 'flag' } let(:string_sanitiser) { Object.new.tap { |o| o.extend(StringSanitiser) } } subject do described_class.new(name) end describe '#initialize' do it 'stores the value as a symbol' do expect(subject.name).to eq(name.to_sym) end it 'sanitises the string parameter' do expect(described_class.new("#{name} \n").name).to eq(name.to_sym) end end describe '#to_s' do it 'returns the name' do expect(subject.to_s).to eq(name) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.3 | spec/sitehub/cookie/flag_spec.rb |