Sha256: 1f0d65c03b291c587f7ec19d55d794dab6d60a176b8d674a8bd1f69ec184afab

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

require 'spec_helper'

describe AQL::Node::Literal, '.construct' do
  let(:class_under_test) do
    Class.new(described_class) do
      include Concord.new(:input)
    end
  end

  let(:input)  { mock('Input')    }
  let(:object) { class_under_test }

  subject { object.construct(input) }

  it { should eql(class_under_test.new(input)) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aql-0.0.3 spec/unit/aql/node/literal/class_methods/construct_spec.rb
aql-0.0.2 spec/unit/aql/node/literal/class_methods/construct_spec.rb
aql-0.0.1 spec/unit/aql/node/literal/class_methods/construct_spec.rb