Sha256: cd6923380fcc1bb152972fba54e635d288afa388e3fec55da9fbe2b21fb2b0fd

Contents?: true

Size: 363 Bytes

Versions: 19

Compression:

Stored size: 363 Bytes

Contents

require 'spec_helper'

module CloudSesame
  describe Context do

    describe '#initialize' do
      it 'should set default value to nil' do
        expect(subject.table).to eq({})
      end
      it 'should accept an default value' do
        context = Context.new(:default_value)
        expect(context.table).to eq(:default_value)
      end
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
CloudSesame-0.6.8 spec/context_spec.rb
CloudSesame-0.6.7 spec/context_spec.rb
CloudSesame-0.6.6 spec/context_spec.rb
CloudSesame-0.6.5 spec/context_spec.rb
CloudSesame-0.6.4 spec/context_spec.rb
CloudSesame-0.6.3 spec/context_spec.rb
CloudSesame-0.6.2 spec/context_spec.rb
CloudSesame-0.6.1 spec/context_spec.rb
CloudSesame-0.6.0 spec/context_spec.rb
CloudSesame-0.5.5 spec/context_spec.rb
CloudSesame-0.5.4 spec/context_spec.rb
CloudSesame-0.5.3 spec/context_spec.rb
CloudSesame-0.5.2 spec/context_spec.rb
CloudSesame-0.5.1 spec/context_spec.rb
CloudSesame-0.5.0 spec/context_spec.rb
CloudSesame-0.4.6 spec/context_spec.rb
CloudSesame-0.4.5 spec/context_spec.rb
CloudSesame-0.4.4 spec/context_spec.rb
CloudSesame-0.4.3 spec/context_spec.rb