Sha256: 05ed5f7c34ce3a8bb312b64d906d20fb2ce9ab37f4aa78251951bd6306ead8c9
Contents?: true
Size: 511 Bytes
Versions: 12
Compression:
Stored size: 511 Bytes
Contents
require 'test/unit' require 'webgen/websiteaccess' class TestWebsiteaccess < Test::Unit::TestCase class WSAccessSubClass include Webgen::WebsiteAccess def get_private_website website end end def test_accessors Thread.current[:webgen_website] = :value assert_equal(:value, Webgen::WebsiteAccess.website) assert_equal(:value, WSAccessSubClass.website) assert_equal(:value, WSAccessSubClass.new.get_private_website) Thread.current[:webgen_website] = nil end end
Version data entries
12 entries across 12 versions & 2 rubygems