Sha256: 9bfc5e34d7e36b2ac532350c5f93be1e4938a961b6d9c985339f2e1437c4dcae

Contents?: true

Size: 634 Bytes

Versions: 3

Compression:

Stored size: 634 Bytes

Contents

require 'test_helper'

require 'capistrano'

class TasksTest < Test::Unit::TestCase
  def setup
    @config = Capistrano::Configuration.new
    Capistrano::Configuration.instance = @config
    task = @config.find_task("nginx:setup")
    load 'capistrano/nginx/tasks.rb'
  end

  def test_add_setup_task
    namespace = @config.namespaces[:nginx]
    assert_not_nil namespace
    setup_task = namespace.tasks[:setup]
    assert_not_nil setup_task
  end

  def test_add_reload_task
    namespace = @config.namespaces[:nginx]
    assert_not_nil namespace
    setup_task = namespace.tasks[:reload]
    assert_not_nil setup_task
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
capistrano-nginx-0.1.0 test/tasks_test.rb
capistrano-nginx-0.0.2 test/tasks_test.rb
capistrano-nginx-0.0.1 test/tasks_test.rb