spec/spec_helper.rb in jwagener-oauth-active-resource-0.1.1 vs spec/spec_helper.rb in jwagener-oauth-active-resource-0.1.5
- old
+ new
@@ -1,9 +1,30 @@
require 'spec'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+
+require 'rubygems'
+
+gem 'oauth'
+require 'oauth'
+
+
require 'oauth_active_resource'
+
+
Spec::Runner.configure do |config|
+end
+
+# Test Modul
+module TestClient
+ def self.register(options = {})
+ OAuthActiveResource.register(self.ancestors.first, self.ancestors.first.const_get('Models'), options)
+ end
+ module Models
+ class XZ < OAuthActiveResource::Resource
+ end
+
+ end
end