Sha256: 6c604fc97af2d7fdac6b01852ff2ebe86088a5d48d0913d03be6463b40986f46
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
require 'spec_helper' RSpec.describe Brickset::Elements::Theme 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 'themes' end describe '#parse' do let(:xml) { fixture('get_themes.xml') } let(:parsed) { described_class.parse(xml, single: true) } it 'knows its attributes' do aggregate_failures do expect(parsed.theme).to eq 'Advanced Models' expect(parsed.set_count).to eq 61 expect(parsed.subtheme_count).to eq 10 expect(parsed.year_from).to eq 2000 expect(parsed.year_to).to eq 2018 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brickset_api-0.1.0 | spec/brickset/elements/theme_spec.rb |