Sha256: 2da3baa66157a48884669bd214b2d3bdc8d774b6150abe99805482646e9b7c33

Contents?: true

Size: 597 Bytes

Versions: 25

Compression:

Stored size: 597 Bytes

Contents

require 'helper'
require 'ostruct'
require 'tmpdir'

module CSD
  module Application
    # This is our dummy application for testing
    #
    module Chess
      class << self
        include CSD::Application::Default
      end
    end
  end
end

class TestApplicationDefault < Test::Unit::TestCase
  
  include CSD
  
  context "the empty, default application module" do
    
    setup do
      @mod = Application::Chess
    end

    should "raise an error if the instance method was called" do
      assert_raise(Error::Application::NoInstanceMethod) { @mod.instance }
    end
    
  end
  
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
csd-0.4.3 test/functional/test_application_default.rb
csd-0.4.2 test/functional/test_application_default.rb
csd-0.4.1 test/functional/test_application_default.rb
csd-0.4.0 test/functional/test_application_default.rb
csd-0.3.7 test/functional/test_application_default.rb
csd-0.3.6 test/functional/test_application_default.rb
csd-0.3.5 test/functional/test_application_default.rb
csd-0.3.4 test/functional/test_application_default.rb
csd-0.3.3 test/functional/test_application_default.rb
csd-0.3.2 test/functional/test_application_default.rb
csd-0.3.1 test/functional/test_application_default.rb
csd-0.3.0 test/functional/test_application_default.rb
csd-0.2.2 test/functional/test_application_default.rb
csd-0.2.1 test/functional/test_application_default.rb
csd-0.2.0 test/functional/test_application_default.rb
csd-0.1.18 test/functional/test_application_default.rb
csd-0.1.17 test/functional/test_application_default.rb
csd-0.1.16 test/functional/test_application_default.rb
csd-0.1.15 test/functional/test_application_default.rb
csd-0.1.14 test/functional/test_application_default.rb