Sha256: d78681b4c51a81eaa6077d029de9a0ac3678557c3d8f63c978b8d0c8daf20304
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Quandl::Format::Dataset do def self.it_should_expect_error(file, error) it "#{file}.qdf should error with #{error}" do Quandl::Logger.should_receive(:error).at_least(:once).with(error) Quandl::Format::Dataset.load( fixtures_data[file] ) end end it_should_expect_error 'invalid_data', /Date/ it_should_expect_error 'unknown_attribute', /this_attribute_does_not_exist/ it_should_expect_error 'invalid_yaml', /Could not find expected ':'/ it_should_expect_error 'missing_dashes', /Could not find expected ':' on line 22/ it_should_expect_error 'missing_dashes', /Did you forget to delimit the meta data section/ it_should_expect_error 'missing_colon', /Are you missing a colon/ it_should_expect_error 'missing_colon2', /Could not find expected ':' on line 3/ it_should_expect_error 'missing_space', /Are you missing a colon/ end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quandl_format-0.2.8 | spec/lib/quandl/format/dataset/load/errors_spec.rb |