Sha256: db516fa0f95f322e20fd553d1e0e9e45dcf55b10ec507254510ee35e2848ad78

Contents?: true

Size: 557 Bytes

Versions: 221

Compression:

Stored size: 557 Bytes

Contents

require File.join(File.dirname(__FILE__), '../test_helper.rb')

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

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

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

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

Version data entries

221 entries across 221 versions & 8 rubygems

Version Path
six-updater-web-0.23.5 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.23.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.23.3 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.23.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.23.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.23.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.22.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.22.3 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.22.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.22.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.22.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.6 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.5 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.3 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.21.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.20.8 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb
six-updater-web-0.20.7 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/actions_test.rb