Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replacing deprecated Sequel::Model#delete_all calls with dataset.trun…

…cate
  • Loading branch information...
commit 7b5b0fc5319e0504f4799115d352370f16a8ac98 1 parent 240f17d
Saimon Moore authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/sequel_polymorphic/sequel_polymorphic_spec.rb
10 spec/sequel_polymorphic/sequel_polymorphic_spec.rb
View
@@ -19,10 +19,10 @@
# has_many :assets, :as => :attachable
# end
-describe Sequel::Plugins::Polymorphic do
+describe SequelPolymorphic do
before do
- Post.delete_all
- Asset.delete_all
+ Post.dataset.truncate
+ Asset.dataset.truncate
end
it "should create an add_asset method which associates an Asset with a Post" do
@@ -52,8 +52,8 @@
describe "one_to_many with many associated objects" do
before do
- Post.delete_all
- Asset.delete_all
+ Post.dataset.truncate
+ Asset.dataset.truncate
@post = Post.create(:name => 'test post')
@asset1 = Asset.create(:name => "post's first asset")
@asset2 = Asset.create(:name => "post's second asset")
Please sign in to comment.
Something went wrong with that request. Please try again.