Sha256: fbe984c4db771a6f61b6ad0bb6e92c6d4d768b149a7990b2877e92cba90e86f1

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'helper'
require 'citrin/cli'

class TestCitrin < Test::Unit::TestCase

  def setup
    @appname = "citest" 
  end

  def cleanup
    Citrin::CLI.start("remove_railsapp", @appname)
  end

  should "create webserver config" do
    Citrin::CLI.start("create_webserver", @appname)
    assert File.exists?("/etc/apache2/sites-enabled/prod.#{@appname}.conf")
    `cd /var/www/rails_apps/prod/ && rails new #{@appname}`
    statuscode = `curl -sL -w "%{http_code}" "#{@appname}.$(hostname -f)" -o /dev/null`
    assert_equal "200", statuscode
    cleanup
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citrin-0.0.8 test/test_citrin.rb