Sha256: 2d9a9077f9ea09f38beeac931987f082ff1e91a78bb07bb1578b817d2097ca82

Contents?: true

Size: 508 Bytes

Versions: 75

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

75 entries across 75 versions & 1 rubygems

Version Path
active_scaffold-3.6.20 test/data_structures/actions_test.rb
active_scaffold-3.6.19 test/data_structures/actions_test.rb
active_scaffold-3.6.17 test/data_structures/actions_test.rb
active_scaffold-3.6.15 test/data_structures/actions_test.rb
active_scaffold-3.6.14 test/data_structures/actions_test.rb
active_scaffold-3.6.13 test/data_structures/actions_test.rb
active_scaffold-3.6.12 test/data_structures/actions_test.rb
active_scaffold-3.6.11.1 test/data_structures/actions_test.rb
active_scaffold-3.6.11 test/data_structures/actions_test.rb
active_scaffold-3.6.10 test/data_structures/actions_test.rb
active_scaffold-3.6.9 test/data_structures/actions_test.rb
active_scaffold-3.6.8 test/data_structures/actions_test.rb
active_scaffold-3.6.6 test/data_structures/actions_test.rb
active_scaffold-3.6.5 test/data_structures/actions_test.rb
active_scaffold-3.6.4.1 test/data_structures/actions_test.rb
active_scaffold-3.6.4 test/data_structures/actions_test.rb
active_scaffold-3.6.3 test/data_structures/actions_test.rb
active_scaffold-3.6.2 test/data_structures/actions_test.rb
active_scaffold-3.6.1 test/data_structures/actions_test.rb
active_scaffold-3.6.0 test/data_structures/actions_test.rb