Sha256: fcf0847ae69e881b6c10d5118f3de1f5a3f892095a0a3012dda93f8ae2b395f1

Contents?: true

Size: 508 Bytes

Versions: 11

Compression:

Stored size: 508 Bytes

Contents

require 'test_helper'

class ActionsTest < Minitest::Test
  def setup
    @actions = ActiveScaffold::DataStructures::Actions.new(:a, 'b')
  end

  def test_initialization
    assert @actions.include?('a')
    assert @actions.include?(:b)
    refute @actions.include?(:c)
  end

  def test_exclude
    assert @actions.include?('b')
    @actions.exclude :b
    refute @actions.include?(:b)
  end

  def test_add
    refute @actions.include?(:c)
    @actions.add 'c'
    assert @actions.include?('c')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active_scaffold-3.7.12 test/data_structures/actions_test.rb
active_scaffold-3.7.11.1 test/data_structures/actions_test.rb
active_scaffold-3.7.11 test/data_structures/actions_test.rb
active_scaffold-3.7.10 test/data_structures/actions_test.rb
active_scaffold-3.7.8 test/data_structures/actions_test.rb
active_scaffold-3.7.7 test/data_structures/actions_test.rb
active_scaffold-3.7.6 test/data_structures/actions_test.rb
active_scaffold-3.7.5 test/data_structures/actions_test.rb
active_scaffold-3.7.2 test/data_structures/actions_test.rb
active_scaffold-3.7.1 test/data_structures/actions_test.rb
active_scaffold-3.7.0 test/data_structures/actions_test.rb