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

Version Path
gettalong-webgen-0.5.4.20080929 test/test_websiteaccess.rb
gettalong-webgen-0.5.5.20081001 test/test_websiteaccess.rb
gettalong-webgen-0.5.5.20081010 test/test_websiteaccess.rb
gettalong-webgen-0.5.5.20081012 test/test_websiteaccess.rb
gettalong-webgen-0.5.6.20081020 test/test_websiteaccess.rb
webgen-0.5.0 test/test_websiteaccess.rb
webgen-0.5.2 test/test_websiteaccess.rb
webgen-0.5.1 test/test_websiteaccess.rb
webgen-0.5.3 test/test_websiteaccess.rb
webgen-0.5.4 test/test_websiteaccess.rb
webgen-0.5.5 test/test_websiteaccess.rb
webgen-0.5.6 test/test_websiteaccess.rb