Sha256: f703e44b5b19310325659c4618c9c4d437d61e28962be74afbd01903cd7e41b4
Contents?: true
Size: 484 Bytes
Versions: 17
Compression:
Stored size: 484 Bytes
Contents
Given(/^the content type is "(.*?)"$/) do |arg1| @content_type = "text/csv" end Then(/^the "(.*?)" should be "(.*?)"$/) do |type, encoding| validator = Csvlint::Validator.new( @url, default_csv_options ) expect( validator.send(type.to_sym) ).to eq( encoding ) end Then(/^the metadata content type should be "(.*?)"$/) do |content_type| validator = Csvlint::Validator.new( @url, default_csv_options ) expect( validator.headers['content-type'] ).to eq( content_type ) end
Version data entries
17 entries across 17 versions & 3 rubygems