Skip to content
Browse files

Don't use deprecated #query method

  • Loading branch information...
1 parent c468ccf commit 1ba32b6310506d30d05cb81cc9393eb8f7e13401 @jnicklas jnicklas committed Feb 6, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/orm/datamapper_spec.rb
View
4 spec/orm/datamapper_spec.rb
@@ -44,14 +44,14 @@
end
it "should return blank uploader when an empty string has been assigned" do
- repository(:default).adapter.query("INSERT INTO events (image) VALUES ('')")
+ repository(:default).adapter.execute("INSERT INTO events (image) VALUES ('')")
@event = @class.first
@event.image.should be_blank
end
it "should retrieve a file from the storage if a value is stored in the database" do
- repository(:default).adapter.query("INSERT INTO events (image) VALUES ('test.jpg')")
+ repository(:default).adapter.execute("INSERT INTO events (image) VALUES ('test.jpg')")
@event = @class.first
@event.save

0 comments on commit 1ba32b6

Please sign in to comment.
Something went wrong with that request. Please try again.