Sha256: 69113c51822d9bb3c2fc6420e4e95c330bd7a82a2ac7f19241b6d086b44ee3bd
Contents?: true
Size: 924 Bytes
Versions: 7
Compression:
Stored size: 924 Bytes
Contents
require 'spec_helper' describe Arachni::Parser::Nodes::Element::WithAttributes::Attributes do subject { described_class.new } describe '#[]' do it 'converts the key to string' do subject[:key] = 'val' expect(subject).to eq( 'key' => 'val' ) end it 'is case insensitive' do subject[:kEy] = 'val' expect(subject).to eq( 'key' => 'val' ) end end describe '#[]=' do it 'converts the key to string' do subject['key'] = 'val' expect(subject).to eq( 'key' => 'val' ) end it 'is case insensitive' do subject[:kEy] = 'val' subject['key'] = 'val2' expect(subject).to eq( 'key' => 'val2' ) end it 'freezes the value' do subject['key'] = 'val' expect(subject['key']).to be_frozen end end end
Version data entries
7 entries across 7 versions & 1 rubygems