Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / common_cartridge   ruby

Repository URL to install this package:

Version: 1.0.1 

/ spec / elements / manifest_spec.rb

require 'spec_helper'

module CommonCartridge
  module Elements
    describe Manifest do
      before(:all) do
        @manifest = CommonCartridge.parse_from_zip("canvas_large_1.3.imscc").manifest
      end

      it "recognizes the manifest file and parses it correctly" do
        expect(@manifest).to be_kind_of(CommonCartridge::Elements::Manifest)
      end

      it "has metadata" do
        expect(@manifest.metadata).to be_kind_of(CommonCartridge::Elements::Metadata)
      end

      it "has organizations" do
        expect(@manifest.root_organization).to be_kind_of(CommonCartridge::Elements::Organizations::RootOrganization)
      end

      it "has resources" do
        expect(@manifest.root_resource).to be_kind_of(CommonCartridge::Elements::Resources::RootResource)
      end
    end
  end
end