Sha256: 10a0ac8b7f1fc9470f84c97c7d01119871e3a56f7e7560768460e951d783843b

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 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|
  @info_messages.count.should == num.to_i
end

Then(/^that message should have the type "(.*?)"$/) do |msg_type|
  @info_messages.first.type.should == msg_type.to_sym
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csvlint-0.0.1 features/step_definitions/validation_info_steps.rb