Sha256: 7ddf058a6d6e4632838f1e8f0c6473c5f0eab5fee8c773d54ca14b0648668361
Contents?: true
Size: 950 Bytes
Versions: 10
Compression:
Stored size: 950 Bytes
Contents
require 'spec_helper' module BerkeleyLibrary module Util module ODS module XML module Office describe AutomaticStyles do let(:doc) { Nokogiri::XML::Document.new } attr_reader :styles before(:each) do @styles = AutomaticStyles.new(doc: doc) end describe :add_child do it 'adds a style' do protected = false color = '#abcdef' style = Style::CellStyle.new('my-style', protected, color, styles: styles) styles.add_child(style) expect(styles.find_cell_style(protected, color: color)).to be(style) end it 'adds a non-style' do non_style = XML::Text::P.new('abcdef', doc: doc) styles.add_child(non_style) end end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems