Sha256: d9f6b94b4b80f7b8c3e5baea3bbef28311abe6631b408fe908f25564db8bff3c
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe HTML::Fragment, '.build' do let(:object) { described_class } subject { object.build(input) } context 'when input is string' do let(:input) { '<foo>' } it 'should store escaped string' do subject.content.should eql('>foo<') end it { should be_a(described_class) } end context 'when input is HTML::Fragment' do let(:input) { HTML::Fragment.new(double) } it 'should be input' do should be(input) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
html-0.1.2 | spec/unit/html/fragment/class_methods/build_spec.rb |