Sha256: 8366b89ab39a1f0eb690a172c5ee389509229138e54ed829286190b9a4a46303

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 Bytes

Contents

require 'spec_helper'
module Alf
  describe Viewpoint, "parse" do

    context 'when called without connection' do
      subject{ Viewpoint.parser }

      it 'returns an unbound Lispy' do
        subject.connection.should be_nil
      end
    end

    context 'when called with a connection' do
      subject{ Viewpoint.parser(12) }

      it 'returns an bound Lispy' do
        subject.connection.should eq(12)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-viewpoint/test_parser.rb
alf-core-0.14.0 spec/unit/alf-viewpoint/test_parser.rb
alf-core-0.13.1 spec/unit/alf-viewpoint/test_parser.rb
alf-core-0.13.0 spec/unit/alf-viewpoint/test_parser.rb