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