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

Version Path
gettalong-webgen-0.5.7.20090227 test/test_websiteaccess.rb
gettalong-webgen-0.5.8.20090507 test/test_websiteaccess.rb
gettalong-webgen-0.5.9.20090620 test/test_websiteaccess.rb
gettalong-webgen-0.5.9.20090626 test/test_websiteaccess.rb
thewoolleyman-webgen-0.5.8.20090419 test/test_websiteaccess.rb
webgen-0.5.17 test/test_websiteaccess.rb
webgen-0.5.15 test/test_websiteaccess.rb
webgen-0.5.14 test/test_websiteaccess.rb
webgen-0.5.13 test/test_websiteaccess.rb
webgen-0.5.12 test/test_websiteaccess.rb
webgen-0.5.11 test/test_websiteaccess.rb
webgen-0.5.10 test/test_websiteaccess.rb
webgen-0.5.9 test/test_websiteaccess.rb
webgen-0.5.7 test/test_websiteaccess.rb
webgen-0.5.8 test/test_websiteaccess.rb