Skip to content

Commit

Permalink
Replacing deprecated Sequel::Model#delete_all calls with dataset.trun…
Browse files Browse the repository at this point in the history
…cate
  • Loading branch information
Saimon Moore committed Nov 26, 2010
1 parent 240f17d commit 7b5b0fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/sequel_polymorphic/sequel_polymorphic_spec.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 7b5b0fc

Please sign in to comment.