Sha256: 2a485f3c990c22cde38e5daa37ffaa541483bbdd3e81f53a9aff515ed620641e

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 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

4 entries across 4 versions & 1 rubygems

Version Path
csvlint-1.4.0 features/step_definitions/information_steps.rb
csvlint-1.3.0 features/step_definitions/information_steps.rb
csvlint-1.2.0 features/step_definitions/information_steps.rb
csvlint-1.1.0 features/step_definitions/information_steps.rb