Sha256: f49b461d2aba8241450e0af225f7cdc5f332e26985b1af1e3a3342aa9a687633

Contents?: true

Size: 672 Bytes

Versions: 27

Compression:

Stored size: 672 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '../../../lib/shared/adapters/adapter.rb'))
require 'test/unit'
require 'shoulda'

class AdapterTest < Test::Unit::TestCase
  
  should "be able to find adapters" do
    assert_equal RspecAdapter, Adapter.find(:spec)
    assert_equal TestUnitAdapter, Adapter.find(:test)
  end
  
  should "find be able to find an adapter by string" do
    assert_equal RspecAdapter, Adapter.find("spec") 
    assert_equal TestUnitAdapter, Adapter.find("test") 
  end
  
  should "be able to return a list of adapters" do
    assert Adapter.all.include?(RspecAdapter)
    assert Adapter.all.include?(TestUnitAdapter)
  end
  
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
testbot-0.7.12 test/shared/adapters/adapter_test.rb
testbot-0.7.11 test/shared/adapters/adapter_test.rb
testbot-0.7.9 test/shared/adapters/adapter_test.rb
testbot_instructure-0.7.9 test/shared/adapters/adapter_test.rb
testbot_instructure-0.7.8 test/shared/adapters/adapter_test.rb
testbot-0.7.8 test/shared/adapters/adapter_test.rb
testbot-0.7.7 test/shared/adapters/adapter_test.rb
testbot-0.7.6 test/shared/adapters/adapter_test.rb
testbot-0.7.5 test/shared/adapters/adapter_test.rb
testbot-0.7.3 test/shared/adapters/adapter_test.rb
testbot-0.7.2 test/shared/adapters/adapter_test.rb
testbot-0.7.1 test/shared/adapters/adapter_test.rb
testbot-0.7.0 test/shared/adapters/adapter_test.rb
testbot-0.6.9 test/shared/adapters/adapter_test.rb
testbot-0.6.8 test/shared/adapters/adapter_test.rb
testbot-0.6.7 test/shared/adapters/adapter_test.rb
testbot-0.6.6 test/shared/adapters/adapter_test.rb
testbot-0.6.5 test/shared/adapters/adapter_test.rb
testbot-0.6.4 test/shared/adapters/adapter_test.rb
testbot-0.6.3 test/shared/adapters/adapter_test.rb