Sha256: e334a1950441d40713c1442dd5734ca5dced040db2b59e5dfcf38647bc6ac9b5
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require "spec_helper" describe Rocx::Elements::Text do include ElementTestMacros context "for the space attribute" do it "shoudl require space to be :preserve or nil" do expect { described_class.new("Banana", space: :preserve) }.to_not raise_error expect { described_class.new("Banana") }.to_not raise_error expect { described_class.new("Banana", space: :the_final_frontier) }.to raise_error(ArgumentError) end end context "with valid attributes" do before(:each) do @node = described_class.new("Banana", space: :preserve) 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/text_spec.rb |