Sha256: a99b64d52d1dbdad4cedae20ae69b287c38bf82e07b2860576279064e8261dac
Contents?: true
Size: 611 Bytes
Versions: 1
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true require 'test_helper' require 'upgrow/naming' module Upgrow class NamingTest < ActiveSupport::TestCase test '.record_to_model removes the Record suffix' do assert_equal 'Article', Naming.record_to_model('ArticleRecord') end test '.model_to_record adds the Record suffix' do assert_equal 'ArticleRecord', Naming.model_to_record('Article') end test '.repository_to_record removes the Repository suffix and adds the Record suffix' do assert_equal 'ArticleRecord', Naming.repository_to_record('ArticleRepository') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
upgrow-0.0.5 | test/upgrow/naming_test.rb |