Sha256: 67e84280556057bd73d4dc1a9e4f44e16b4d56964435382b198db0cd389061a3

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 Bytes

Contents

require 'spec_helper'

describe AQL::Node::Literal, '#handle' do
  Dummy = Class.new do
    include Equalizer.new
  end

  let(:object) { described_class }

  subject { object.build(Dummy.new) }

  let(:input) { Dummy.new }

  let(:class_under_test) do
    Class.new(described_class) do
      include Concord.new(:object)
      handle(Dummy)
    end
  end

  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/handle_spec.rb
aql-0.0.2 spec/unit/aql/node/literal/class_methods/handle_spec.rb
aql-0.0.1 spec/unit/aql/node/literal/class_methods/handle_spec.rb