Sha256: b5c796431ae1dea62b0e9fb60198c49de6cb1a2aee365e3524c0776516bc2c34

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

require 'test_helper'

class DeciderTest < Test::Unit::TestCase
  should "pick the the only choice if given one" do
    assert_equal 'one', Decider::decide('one')
  end
  
  should "pick one of the given choices" do
    choices = ['one', 'two', 'three']
    assert_contains choices, Decider::decide(*choices)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
skalnik-decider-1.0.0 test/decider_test.rb
skalnik-decider-2.0.0 test/decider_test.rb
decider-2.0.0 test/decider_test.rb