spec/integration/plugin_test.rb in sequel-3.37.0 vs spec/integration/plugin_test.rb in sequel-3.38.0

- old
+ new

@@ -197,11 +197,11 @@ after(:all) do @db.drop_table? :albums_artists, :albums, :artists end def self_join(c) - c.join(c.table_name.as(:b), Array(c.primary_key).zip(Array(c.primary_key))).select_all(c.table_name) + c.join(Sequel.as(c.table_name, :b), Array(c.primary_key).zip(Array(c.primary_key))).select_all(c.table_name) end specify "should handle super simple case with 1 join table" do Artist.many_through_many :albums, [[:albums_artists, :artist_id, :album_id]] Artist[@artist1.id].albums.map{|x| x.name}.sort.should == %w'A D' @@ -1263,11 +1263,11 @@ end after(:all) do @db.drop_table?(:pages) end - it "should return rows in order of position" do + specify "should return rows in order of position" do @c.map(:name).should == %w[ Hm Ps Au P1 P2 P3 ] end it "should define prev and next" do @c[:name => "Ps"].next.name.should == 'Au' @@ -1284,29 +1284,29 @@ @c[:name => "Au"].next.should == nil @c[:name => "P1"].prev.should == nil @c[:name => "P3"].next.should == nil end - it "should define move_to" do + specify "should define move_to" do @c[:name => "P2"].move_to(1) @c.map(:name).should == %w[ Hm Ps Au P2 P1 P3 ] @c[:name => "P2"].move_to(3) @c.map(:name).should == %w[ Hm Ps Au P1 P3 P2 ] proc { @c[:name => "P2"].move_to(-1) }.should raise_error(Sequel::Error) proc { @c[:name => "P2"].move_to(10) }.should raise_error(Sequel::Error) end - it "should define move_to_top and move_to_bottom" do + specify "should define move_to_top and move_to_bottom" do @c[:name => "Au"].move_to_top @c.map(:name).should == %w[ Hm Au Ps P1 P2 P3 ] @c[:name => "Au"].move_to_bottom @c.map(:name).should == %w[ Hm Ps Au P1 P2 P3 ] end - it "should define move_up and move_down" do + specify "should define move_up and move_down" do @c[:name => "P2"].move_up @c.map(:name).should == %w[ Hm Ps Au P2 P1 P3 ] @c[:name => "P1"].move_down @c.map(:name).should == %w[ Hm Ps Au P2 P3 P1 ]