Sha256: 0c98ff24bf7f3b6d9b156a60356d661315f68a11a03db02d534ffe2317c561e0
Contents?: true
Size: 498 Bytes
Versions: 19
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe ContentfulMiddleman::Context do describe 'instance methods' do it '#set' do subject.set('foo', 'bar') expect(subject.foo).to eq 'bar' end it '#get' do subject.set('foo', 'bar') expect(subject.get('foo')).to eq 'bar' end describe '#method_missing' do it 'when :something= is called it uses #set(something, value)' do subject.foo = 'bar' expect(subject.foo).to eq 'bar' end end end end
Version data entries
19 entries across 19 versions & 1 rubygems