Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pending adapter specs
  • Loading branch information
ianwhite committed Aug 25, 2010
1 parent 19dd0db commit f6c6027
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/pickle/orm_adapters/active_record_spec.rb
@@ -0,0 +1,18 @@
require 'spec_helper'

describe 'ActiveRecord PickleOrmAdapter' do
it "should know how to convert attributes with model objects as values into conditions"

#adapter could know how to
#
# 'Then a site should exist with name: "Foo", owner: user "fred"'
#
# Conversion
# 'name: "Foo", owner: user "fred"'
# {:name => "Foo", :owner => <User(fred)>}
#
# Adapter
# AR
# first(:conditions => {:name => "Foo", :owner_id => fred.id, :owner_type => 'User'})
#
end
5 changes: 5 additions & 0 deletions spec/pickle/orm_adapters/data_mapper_spec.rb
@@ -0,0 +1,5 @@
require 'spec_helper'

describe 'DataMapper PickleOrmAdapter' do
it "should know how to convert attributes with model objects as values into conditions"
end

0 comments on commit f6c6027

Please sign in to comment.