Sha256: 3d34b708da4d35bead5da1ee272bc0adb94afe96f3f8aee3848138e5d53ba9c8
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' RSpec.describe Brickset::Elements::Instruction do it 'knows its ancestors' do expect(described_class.ancestors).to include HappyMapper end it 'knows its tag' do expect(described_class.tag_name).to eq 'instructions' end describe '#parse' do let(:xml) { fixture('get_instructions.xml') } let(:parsed) { described_class.parse(xml, single: true) } it 'knows its attributes' do aggregate_failures do expect(parsed.url).to eq 'https://www.lego.com/biassets/bi/4525430.pdf' expect(parsed.description).to eq 'Building instruction 10179' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brickset_api-0.1.0 | spec/brickset/elements/instruction_spec.rb |