spec/spec_helper.rb in csverizer-0.0.3 vs spec/spec_helper.rb in csverizer-0.0.4
- old
+ new
@@ -24,26 +24,26 @@
include ActiveModel::Serialization
attr_accessor :name, :body, :comments, :author, :category
end
-class PostCSVerizer < ActiveModel::CSVerizer
+class PostCsvrizer < ActiveModel::Csvrizer
attributes :name, :body
has_many :comments
has_one :author
has_one :category
end
-class Post2CSVerizer < PostCSVerizer
+class Post2Csvrizer < PostCsvrizer
attributes :name, :body
def name
'pie'
end
end
-class Post3CSVerizer < ActiveModel::CSVerizer
+class Post3Csvrizer < ActiveModel::Csvrizer
attributes :name
attributes :body
end
#
@@ -53,11 +53,11 @@
include ActiveModel::Serialization
attr_accessor :text
end
-class CommentCSVerizer < ActiveModel::CSVerizer
+class CommentCsvrizer < ActiveModel::Csvrizer
attributes :text
end
#
@@ -73,11 +73,11 @@
include ActiveModel::Serialization
attr_accessor :name, :category
end
-class AuthorCSVerizer < ActiveModel::CSVerizer
+class AuthorCsvrizer < ActiveModel::Csvrizer
attributes :name
has_one :category
end
@@ -88,8 +88,8 @@
include ActiveModel::Serialization
attr_accessor :name
end
-class CategoryCSVerizer < ActiveModel::CSVerizer
+class CategoryCsvrizer < ActiveModel::Csvrizer
attributes :name
end