spec/zebra/zpl/text_spec.rb in zebra-zpl-1.1.1 vs spec/zebra/zpl/text_spec.rb in zebra-zpl-1.1.2

- old
+ new

@@ -54,10 +54,13 @@ end describe "#font_size=" do it "raises an error if the received font_size is invalid" do expect { - described_class.new.font_size = 6 + described_class.new.font_size = -1 + }.to raise_error(Zebra::Zpl::FontSize::InvalidFontSizeError) + expect { + described_class.new.font_size = 32001 }.to raise_error(Zebra::Zpl::FontSize::InvalidFontSizeError) end end # describe "#h_multiplier=" do