spec/extensions/csv_serializer_spec.rb in sequel-4.49.0 vs spec/extensions/csv_serializer_spec.rb in sequel-5.0.0

- old
+ new

@@ -1,13 +1,9 @@ -require File.join(File.dirname(File.expand_path(__FILE__)), "spec_helper") +require_relative "spec_helper" -begin - csv_lib = RUBY_VERSION < '1.9' ? 'fastercsv' : 'csv' - require csv_lib -rescue LoadError => e - skip_warn "csv_serializer plugin: can't load #{csv_lib} (#{e.class}: #{e})" -else +require 'csv' + describe "Sequel::Plugins::CsvSerializer" do before do artist = @Artist = Class.new(Sequel::Model(:artists)) @Artist.class_eval do def self.name; 'Artist' end @@ -182,7 +178,6 @@ @Album.csv_serializer_opts[:only] = [:id] @Album.freeze @Album.csv_serializer_opts.frozen?.must_equal true @Album.csv_serializer_opts[:only].frozen?.must_equal true end -end end