Sha256: ac1afff034db61738bed017b1077351921fbde7040c25a262314ebe9f5bbe7fa

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

When /^record "([^\"]*)" coming from ([^\"]*) is analysed$/ do |ascii_text, record_source_name|
  record_source_name = nil if record_source_name == "unspecified"
  ascii_text.gsub!('\\n', "\n")
  type_determiner = AsciiDataTools::RecordType::TypeDeterminer.new(@record_types)
  @type = type_determiner.determine_type_for(:ascii_string => ascii_text, :filename => record_source_name)
end

Then /^its type should be recognised as "([^\"]*)"$/ do |type_name|
  @type.name.should == type_name
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ascii-data-tools-0.9 features/step_definitions/record_recognition_steps.rb