Sha256: 16d87d615f9defc1780768291195912a1d2f9edf536b8394b8100962e9f6fd55
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
Given(/^I ask if there are info messages$/) do @csv_options ||= default_csv_options if @schema_json @schema = Csvlint::Schema.from_json_table( @schema_url || "http://example.org ", JSON.parse(@schema_json) ) 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
3 entries across 3 versions & 1 rubygems