Permalink
Browse files

Minor spec updates to remove Sequel deprecation warnings

  • Loading branch information...
jeremyevans committed Jun 1, 2017
1 parent 3cff75d commit b8db6e163ed98e4d743acc3e9a4f250d0f48fc9d
Showing with 4 additions and 3 deletions.
  1. +2 −1 spec/fd_spec.rb
  2. +2 −2 spec/sequel_spec_helper.rb
View
@@ -167,7 +167,8 @@ def verbose(i=3)
end
it "should raise error nonexistent fixture files" do
- class Foo < Sequel::Model; end
+ Foo = Class.new(Sequel::Model)
+ def Foo.table_name; :foos end
proc{load(:foos)}.must_raise(ArgumentError)
end
@@ -56,14 +56,14 @@ class StySub < Sty
end
class Cti < Sequel::Model
- plugin :class_table_inheritance, :key => :kind
+ plugin :class_table_inheritance, :key => :kind, :alias=>:ctis
end
class CtiSub < Cti
end
class CtiMm < Sequel::Model
- plugin :class_table_inheritance, :key=>:kind_id, :model_map=>{nil=>:CtiMmSub, 1=>:CtiMmSub, 2=>self}, :key_map=>{self=>2, :CtiMmSub=>1}
+ plugin :class_table_inheritance, :key=>:kind_id, :model_map=>{nil=>:CtiMmSub, 1=>:CtiMmSub, 2=>self}, :key_map=>{self=>2, :CtiMmSub=>1}, :alias=>:cti_mms
end
class CtiMmSub < CtiMm

0 comments on commit b8db6e1

Please sign in to comment.