Sha256: a9ebde2648214fab84d7f9d89d05b8000e66d0d8ea787bcb411e64d1a61e8dc6
Contents?: true
Size: 760 Bytes
Versions: 5
Compression:
Stored size: 760 Bytes
Contents
Given(/^I ask if there are info messages$/) do @csv_options ||= default_csv_options if @schema_json @schema = if @schema_type == :json_table Csvlint::Schema.from_json_table(@schema_url || "http://example.org ", JSON.parse(@schema_json)) else Csvlint::Schema.from_csvw_metadata(@schema_url || "http://example.org ", JSON.parse(@schema_json)) end end @validator = Csvlint::Validator.new(@url, @csv_options, @schema) @info_messages = @validator.info_messages end Then(/^there should be (\d+) info messages?$/) do |num| expect(@info_messages.count).to eq(num.to_i) end Then(/^one of the messages should have the type "(.*?)"$/) do |msg_type| expect(@info_messages.find { |x| x.type == msg_type.to_sym }).to be_present end
Version data entries
5 entries across 5 versions & 1 rubygems