Sha256: 0be21a6c0d7b7096c6c697fce3dd6991e6657a27dabfd37682d6a648001f20a4

Contents?: true

Size: 445 Bytes

Versions: 6

Compression:

Stored size: 445 Bytes

Contents

require 'spec_helper'

fixture_path = 'spec/fixtures'

describe 'malformed_csv' do
  subject { lambda { SmarterCSV.process(csv_path) } }

  context "malformed header" do
    let(:csv_path) { "#{fixture_path}/malformed_header.csv" }
    it { should raise_error(CSV::MalformedCSVError) }
  end

  context "malformed content" do
    let(:csv_path) { "#{fixture_path}/malformed.csv" }
    it { should raise_error(CSV::MalformedCSVError) }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
smarter_csv-1.5.2 spec/smarter_csv/malformed_spec.rb
smarter_csv-1.5.1 spec/smarter_csv/malformed_spec.rb
smarter_csv-1.5.0 spec/smarter_csv/malformed_spec.rb
smarter_csv-1.4.2 spec/smarter_csv/malformed_spec.rb
smarter_csv-1.4.0 spec/smarter_csv/malformed_spec.rb
smarter_csv-1.3.0 spec/smarter_csv/malformed_spec.rb