Permalink
Browse files

Got rid of old VirtualBase in all *_spec.rb files

  • Loading branch information...
1 parent 9dc7a88 commit 165ba0d09623ee94a73aa83e787503488fac92cd DanielVartanov committed Sep 22, 2010
@@ -6,7 +6,7 @@
describe "given a controller which acts as sdata with a virtual model as a base" do
- class VirtualModel < SData::VirtualBase
+ class VirtualModel < SData::Resource
attr_accessor :baze
self.baze_class = Class
end
@@ -170,4 +170,4 @@ class VirtualModel < SData::VirtualBase
end
end
end
-end
+end
@@ -7,7 +7,7 @@
BaseModel = Class.new(ActiveRecord::Base)
Object.__send__ :remove_const, :Model if defined?(Model)
- class Model < SData::VirtualBase
+ class Model < SData::Resource
self.baze_class = BaseModel
define_payload_map :born_at => { :baze_field => :born_at }
@@ -55,4 +55,4 @@ class Controller < ActionController::Base
end
end
end
-end
+end
@@ -5,7 +5,7 @@
before :all do
Object.__send__ :remove_const, :Model if defined?(Model)
- class Model < SData::VirtualBase
+ class Model < SData::Resource
self.baze_class = Class.new
define_payload_map :born_at => { :baze_field => :born_at }
@@ -63,4 +63,4 @@ class Controller < ActionController::Base
end
end
end
-end
+end
@@ -7,7 +7,7 @@
BaseModel = Class.new(ActiveRecord::Base)
Object.__send__ :remove_const, :Model if defined?(Model)
- class Model < SData::VirtualBase
+ class Model < SData::Resource
self.baze_class = BaseModel
define_payload_map :born_at => { :baze_field => :born_at }
@@ -61,4 +61,4 @@ class Controller < ActionController::Base
end
end
end
-end
+end
@@ -19,7 +19,7 @@ def update_attributes(*params)
end
end
- class VirtualModel < SData::VirtualBase
+ class VirtualModel < SData::Resource
attr_accessor :baze
end
@@ -3,7 +3,7 @@
describe SData::PayloadMap do
context "given sdata model class extended by SData::PayloadMap" do
before :all do
- class TradingAccount < SData::VirtualBase
+ class TradingAccount < SData::Resource
# extend SData::PayloadMap
#
define_payload_map :foo => { :static_value => :bar }
@@ -141,4 +141,4 @@ def method_missing(meth, *args, &block)
end
end
-end
+end
@@ -20,7 +20,7 @@ def update_attributes(*params)
end
end
- class VirtualModel < SData::VirtualBase
+ class VirtualModel < SData::Resource
attr_accessor :baze
end

0 comments on commit 165ba0d

Please sign in to comment.