Sha256: a05d78ca51288185577313bdab5fd3976d18aa524c14fe3973ddd84e2018efed
Contents?: true
Size: 714 Bytes
Versions: 3
Compression:
Stored size: 714 Bytes
Contents
require "test_helper" module Godmin class ResourceServiceTest < ActiveSupport::TestCase def setup @article_service = ArticleService.new end def test_resource_class assert_equal Article, @article_service.resource_class end def test_attrs_for_index assert_equal [:id, :title, :country], @article_service.attrs_for_index end def test_attrs_for_show assert_equal [:title, :country], @article_service.attrs_for_show end def test_attrs_for_form assert_equal [:id, :title, :country, :body], @article_service.attrs_for_form end def test_attrs_for_export assert_equal [:id, :title], @article_service.attrs_for_export end end end
Version data entries
3 entries across 3 versions & 1 rubygems