Sha256: c6586c0538e009a7e660fe4b984e7fcd6647d8a24387633a03eff42e3564f12c
Contents?: true
Size: 592 Bytes
Versions: 10
Compression:
Stored size: 592 Bytes
Contents
require File.dirname(__FILE__) + "/../lib/toadhopper" require 'test/unit' class Toadhopper::TestSetters < Test::Unit::TestCase def setup Toadhopper.api_key = nil Toadhopper.filters = nil end def test_setting_api_key Toadhopper.api_key = "abc123" assert_equal "abc123", Toadhopper.api_key end def test_setting_single_filter Toadhopper.filters = /password/ assert_equal [/password/], Toadhopper.filters end def test_setting_multple_filters Toadhopper.filters = /password/, /email/ assert_equal [/password/, /email/], Toadhopper.filters end end
Version data entries
10 entries across 10 versions & 2 rubygems