spec/metadata_spec.rb in rdf-tabular-2.2.2 vs spec/metadata_spec.rb in rdf-tabular-3.1.0

- old
+ new

@@ -836,16 +836,10 @@ ":type Table" => [{}, {type: :Table}, RDF::Tabular::Table], ":type Template" => [{}, {type: :Template}, RDF::Tabular::Transformation], ":type Schema" => [{}, {type: :Schema}, RDF::Tabular::Schema], ":type Column" => [{}, {type: :Column}, RDF::Tabular::Column], ":type Dialect" => [{}, {type: :Dialect}, RDF::Tabular::Dialect], - "@type TableGroup" => [{}, {"@type" => "TableGroup"}, RDF::Tabular::TableGroup], - "@type Table" => [{"@type" => "Table"}, RDF::Tabular::Table], - "@type Template" => [{"@type" => "Template"}, RDF::Tabular::Transformation], - "@type Schema" => [{"@type" => "Schema"}, RDF::Tabular::Schema], - "@type Column" => [{"@type" => "Column"}, RDF::Tabular::Column], - "@type Dialect" => [{"@type" => "Dialect"}, RDF::Tabular::Dialect], "tables TableGroup" => [{"tables" => []}, RDF::Tabular::TableGroup], "dialect Table" => [{"dialect" => {}}, RDF::Tabular::Table], "tableSchema Table" => [{"tableSchema" => {}}, RDF::Tabular::Table], "transformations Table" => [{"transformations" => []}, RDF::Tabular::Table], "targetFormat Transformation" => [{"targetFormat" => "http://foo"}, RDF::Tabular::Transformation], @@ -872,11 +866,11 @@ klass = args.pop input, options = args options ||= {} options[:logger] = logger options[:context] ||= 'http://www.w3.org/ns/csvw' - expect(described_class.new(input, options)).to be_a(klass) + expect(described_class.new(input, **options)).to be_a(klass) expect(logger.to_s).not_to match(/ERROR|WARN/) end end end end @@ -1377,10 +1371,10 @@ end context "Unsupported datatypes" do %w(anyType anySimpleType ENTITIES IDREFS NMTOKENS ENTITY ID IDREF NOTATAION foo).each do |base| it "detects #{base} as unsupported" do - md = RDF::Tabular::Table.new({ + RDF::Tabular::Table.new({ url: "http://example.com/table.csv", tableSchema: { columns: [{ name: "name", datatype: base