Sha256: a7e90f8aa3d3c03d28c4c4e167bbb76e20a45347be3fc47967f763d00be16993
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
require "spec_helper" describe Rocx::Parts::ContentTypes do include PartTestMacros context "when first creating the content types" do before(:each) do @doc = described_class.new end it "should install the preset defaults" do expect(doc.defaults.length).to eq(3) end it "should install the present overrides" do expect(doc.overrides.length).to eq(2) end end context "after creating the content types" do before(:each) do @doc = described_class.new end it "should be able to add additional defaults" do doc.default "coolml", "text/coolml" expect(doc.defaults).to include({"Extension" => "coolml", "ContentType" => "text/coolml"}) end it_should_output_correct_xml end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | spec/parts/content_types_spec.rb |
rocx-0.6.0 | spec/parts/content_types_spec.rb |
rocx-0.5.8 | spec/parts/content_types_spec.rb |