Sha256: d32609dfed405005b38f204a239a9bea8c9e9ebe0433df47dbd8de4f351023d4
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true require 'test_helper' require 'upgrow/actions' require 'upgrow/action' class GlobalAction < Upgrow::Action end module Upgrow class NamespacedAction < Action end class ActionsTest < ActiveSupport::TestCase test '.[] returns the Action with the given global name' do assert_equal GlobalAction, Actions['global'] end test '.[] returns the Action with the given namespaced name' do assert_equal NamespacedAction, Actions['upgrow', 'namespaced'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
upgrow-0.0.5 | test/upgrow/actions_test.rb |
upgrow-0.0.4 | test/upgrow/actions_test.rb |
upgrow-0.0.3 | test/upgrow/actions_test.rb |