Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sets up the specs for the client adapter

  • Loading branch information...
commit 62e28389668d959aa127e4c8f8cfa5cb681e6adb 1 parent 7ea2313
Daniel Neighman hassox authored
4 .gitignore
View
@@ -1 +1,3 @@
-*.tmproj
+*.tmproj
+*/pkg
+*/log
4 merb-rest-client/Rakefile
View
@@ -1,6 +1,10 @@
require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/specification'
+require 'spec/rake/spectask'
+require 'merb-core/version'
+require 'merb-core/test/tasks/spectasks'
+require 'merb-core/tasks/merb_rake_helper'
require 'date'
GEM = "merb-rest-client"
3  merb-rest-client/lib/merb-rest-client.rb
View
@@ -0,0 +1,3 @@
+require 'dm-core'
+
+require File.join(File.dirname(__FILE__), "..", "merb_dm_rest_adapter")
7 merb-rest-client/lib/merb_rest_adapter.rb
View
@@ -0,0 +1,7 @@
+module DataMapper
+ module Adapters
+ class MerbRestAdapter < AbstractAdapter
+
+ end # MerbDataMapperRest
+ end # Adapters
+end # DataMapper
33 merb-rest-client/spec/merb_rest_adapter_spec.rb
View
@@ -0,0 +1,33 @@
+require File.join(File.dirname(__FILE__), "..", "spec_helper")
+
+describe "DataMapper::Adatapers::MerbRest" do
+
+ before(:all) do
+ DataMapper.setup(:merb_rest, "merb_rest://example.com")
+ @repository = repository(:merb_rest)
+ @adapter = @repository.adapter
+ end
+
+ it "should handle ssl"
+
+ describe "create" do
+ it{@adapter.should respond_to(:create)}
+ end
+
+ describe "read_many" do
+ it{@adapter.should respond_to(:read_many)}
+ end
+
+ describe "read_one" do
+ it{@adapter.should respond_to(:read_one)}
+ end
+
+ describe "update" do
+ it{@adapter.should respond_to(:update)}
+ end
+
+ describe "delete" do
+ it{@adapter.should respond_to(:delete)}
+ end
+
+end
2  merb-rest-client/spec/spec_helper.rb
View
@@ -1,2 +1,4 @@
+require 'rubygems'
+require 'dm-core'
$TESTING=true
$:.push File.join(File.dirname(__FILE__), '..', 'lib')
Please sign in to comment.
Something went wrong with that request. Please try again.