Sha256: f00288ecfff8aabbb6f5372d10362aebed3b8e989b488d193c01de7a44a767c0

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require "spec_helper"

describe Rocx::Elements::Symbol do
  include ElementTestMacros

  context "always" do
    before(:each) do
      @node = described_class.new
    end

    it "should raise an exception if the char property isn't a 4-digit hex" do
      expect { node.char = "not valid" }.to raise_error(ArgumentError)
      expect { node.char = "43fd" }.to_not raise_error
    end
  end

  context "with valid attributes" do
    before(:each) do
      @node = described_class.new(char: "43fd", font: "Wingdings")
    end

    it_should_output_correct_xml
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rocx-0.5.8 spec/elements/symbol_spec.rb