Sha256: 66b175c385bfcc0b54612b9885810ad5c1a342f8ecdc2e32c916a4069a1e6937
Contents?: true
Size: 728 Bytes
Versions: 17
Compression:
Stored size: 728 Bytes
Contents
require "test_helper" module Godmin class ResourceServiceTest < ActiveSupport::TestCase def setup @article_service = Fakes::ArticleService.new end def test_resource_class assert_equal Fakes::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
17 entries across 17 versions & 1 rubygems