Sha256: 89a6599ad0fc22368acfe7592fd6ecdfce040251d7d8625e9ec4deb9f69b750f

Contents?: true

Size: 660 Bytes

Versions: 1

Compression:

Stored size: 660 Bytes

Contents

require 'test_helper'

module TaskAssertions
  def assert_proper_name_of_current(namespace)
    Pathname.stubs(:pwd).returns Pathname("path/to/php_test")
    namespace.stubs(:clean_name).with do |arg|
      assert_equal "php_test", arg.to_s
      true
    end.returns "result"
    assert_equal "result", namespace.name_of_current
  end
end

class WebsiteTasksTest < Test::Unit::TestCase
  include TaskAssertions
  
  def test_name_of_current
    assert_proper_name_of_current TASKS.website
  end
end

class AppTypeTasksTest < Test::Unit::TestCase
  include TaskAssertions
  
  def test_name_of_current
    assert_proper_name_of_current TASKS.apptype
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Flucti-flucti-cli-0.1.16 test/flucti/tasks_test.rb