Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Used Resource instead of VirutalBase in class_stubs

  • Loading branch information...
commit 9dc7a889456ee6360deb58437e6b58498175c0f7 1 parent 2bdf85a
DanielVartanov authored
Showing with 4 additions and 7 deletions.
  1. +2 −5 spec/class_stubs/address.rb
  2. +2 −2 spec/class_stubs/model_base.rb
View
7 spec/class_stubs/address.rb
@@ -1,7 +1,4 @@
-# SData::VirtualBase is uninitialized for some reason without below line
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
-
-class Address < SData::VirtualBase
+class Address < SData::Resource
def self.descends_from_active_record?
true
@@ -21,4 +18,4 @@ def populate_defaults
:created_at => { :proc => lambda { @created_at }, :precedence => 4 },
:updated_at => { :proc => lambda { @updated_at }, :precedence => 4 }
-end
+end
View
4 spec/class_stubs/model_base.rb
@@ -1,4 +1,4 @@
-class ModelBase < SData::VirtualBase
+class ModelBase < SData::Resource
attr_accessor :id
def self.name
@@ -14,4 +14,4 @@ def sdata_options
{}
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.