Sha256: 137da17400981aa3433699daad1273e1635745802211674282ca0a9976473e86
Contents?: true
Size: 538 Bytes
Versions: 15
Compression:
Stored size: 538 Bytes
Contents
# -*- encoding: utf-8 -*- 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
15 entries across 15 versions & 3 rubygems