Sha256: 7c6a151fb260a5ebf76bc3c9d2f51a870ed1669190965d96fd835b4525b0deef

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

require 'test_helper'

module ApiPi
  class TestDsl < TestCase

    def test_response_gathering
      r = ApiPi::Dsl.new(t:'t')
      r.test "metadata" do 
        "test".is_a(String)
      end
      assert r.tests.has_key?('metadata'), r.tests['metadata']
      assert_kind_of Proc, r.tests['metadata']
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api_pi-0.2.3 test/unit/test_dsl.rb
api_pi-0.2.2 test/unit/test_dsl.rb