Sha256: 96502278aa63ee97417850f723bf9cc8f5a42a7e0e2d99c2c7bcb04f4500a09f
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
require 'spec_helper' describe Hexp::Node, 'pp' do subject { object.pp } context 'with no attributes or children' do let(:object) { Hexp::Node[:p, {}] } it { should == 'Hexp::Node[:p]'} end context 'with a single child' do let(:object) { Hexp::Node[:p, [ [:abbr, {title: 'YAGNI'}, "You ain't gonna need it"] ]] } it { should == %q^Hexp::Node[:p, [ Hexp::Node[:abbr, {"title"=>"YAGNI"}, [ "You ain't gonna need it"]]]]^.gsub(' '*22, '') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hexp-0.0.1.pre2 | spec/unit/hexp/node/pp_spec.rb |