Sha256: a2bc7e13ef333e3803445b4864150039c40c5d569ea437cf37362b5889d1bdd8

Contents?: true

Size: 195 Bytes

Versions: 2

Compression:

Stored size: 195 Bytes

Contents

require 'spec_helper'

describe Hexp::Node, 'to_a' do
  subject { object.to_a }
  let(:object) { Hexp::Node.new(:p, class: 'foo') }

  it { should == [:p, {'class' => 'foo'}, Hexp::List[]] }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hexp-0.0.1.pre3 spec/unit/hexp/node/to_a_spec.rb
hexp-0.0.1.pre2 spec/unit/hexp/node/to_a_spec.rb