Sha256: c5595c630e65561d635c49a209ebecbafa7f4950a680d12096aadbc3fe084543
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'helper' require 'models' describe Errata do before do @e = Errata.new :url => 'http://spreadsheets.google.com/pub?key=t9WkYT39zjrStx7ruCFrZJg', :responder => 'AutomobileVariantGuru' end it "corrects rows" do alfa = { "carline_mfr_name"=>"ALFA ROMEO" } @e.correct!(alfa) alfa['carline_mfr_name'].must_equal 'Alfa Romeo' end it "rejects rows" do @e.rejects?('carline_mfr_name' => 'AURORA CARS').must_equal true end it "tries multiple conditions" do bentley = { 'carline_mfr_name' => 'ROLLS-ROYCE BENTLEY', "carline name" => 'Super Bentley' } @e.correct!(bentley) bentley['carline_mfr_name'].must_equal 'Bentley' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
errata-1.1.0 | test/test_errata.rb |