Sha256: 1631cd4c5821e507c1caf194c3ac2c3c3545b88277f49873231bfe26ab15bc09

Contents?: true

Size: 565 Bytes

Versions: 7

Compression:

Stored size: 565 Bytes

Contents

require 'spec_helper'

describe Arachni::Parser::Nodes::Comment do
    subject { described_class.new( value ) }
    let(:value) { 'my comment' }

    describe '#value' do
        it 'returns the given value' do
            expect(subject.value).to eq value
        end
    end

    describe '#text' do
        it 'returns the given value' do
            expect(subject.text).to eq value
        end
    end

    describe '#to_html' do
        it 'returns the given value' do
            expect(subject.to_html).to eq "<!-- my comment -->\n"
        end
    end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.6.1.2 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.6.1.1 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.6.1 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.6.0 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.5.1 spec/arachni/parser/nodes/comment_spec.rb
arachni-1.5 spec/arachni/parser/nodes/comment_spec.rb