Sha256: 40e334c6574de0e43a3ac04f18bb446b79451c1071fe8cdddecfc1c3214424bb

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

require File.dirname(__FILE__) + '/../test_helper.rb'

class Jasminewebos::TestConfiguration < Test::Unit::TestCase
  
  context "with a default config" do
    setup do
      @config = Jasminewebos::Configuration.new(File.dirname(__FILE__))
    end
    should "have default port" do
      assert_equal(8888, @config.port)
    end
    should "have jasmine_root" do
      assert_equal(File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "vendor", "jasmine")),
                   @config.jasmine_root)
    end
    should "have an app root" do
      assert_equal(File.dirname(__FILE__), @config.application_root)
    end
    
    should "have sources.json" do
      assert_equal(File.join(File.dirname(__FILE__), "sources.json"), @config.sources_json)
    end
    
    should "have specs_dir" do 
      assert_equal(File.join(File.dirname(__FILE__), "spec", "javascript", "spec"), @config.specs_dir)
    end
    
    should "have matchers_dir" do
      assert_equal(File.join(File.dirname(__FILE__), "spec", "javascript", "matchers"), @config.matchers_dir)
    end
    
    should "have jasminewebos_root" do
      assert_equal(File.expand_path(File.join(File.dirname(__FILE__), "..", "..")),
                   @config.jasminewebos_root)
    end
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaffo-jasmine_webos-0.0.1 test/jasminewebos/test_configuration.rb
gaffo-jasmine_webos-0.0.2 test/jasminewebos/test_configuration.rb
gaffo-jasmine_webos-0.0.3 test/jasminewebos/test_configuration.rb
gaffo-jasmine_webos-0.0.4 test/jasminewebos/test_configuration.rb
jasmine_webos-0.0.8 test/jasminewebos/test_configuration.rb
jasmine_webos-0.0.6 test/jasminewebos/test_configuration.rb