diff options
author | Kevin Thompson <kevin@kevinthompson.info> | 2012-12-16 23:47:00 -0800 |
---|---|---|
committer | Daniel Beauchamp <daniel.beauchamp@shopify.com> | 2012-12-24 23:23:04 -0500 |
commit | 27338212e6347bebed1cbf08963a9af110368b76 (patch) | |
tree | 468615cd617d1519fd1a698e594b5affd9e6deda /test/cli_test.rb | |
parent | efc78f648a76ccc9421e3fc0a16e9f6c6448b346 (diff) |
Establish test suite.
Diffstat (limited to 'test/cli_test.rb')
-rw-r--r-- | test/cli_test.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/cli_test.rb b/test/cli_test.rb new file mode 100644 index 0000000..4dc1eb3 --- /dev/null +++ b/test/cli_test.rb @@ -0,0 +1,20 @@ +require 'test_helper' +silent{ load 'bin/dashing' } + +module Thor::Actions + def source_paths + [File.join(File.expand_path(File.dirname(__FILE__)), '../templates')] + end +end + +class CliTest < Dashing::Test + + def test_project_directory_created + temp do |dir| + cli = Dashing::CLI.new + silent{ cli.new 'Dashboard' } + assert Dir.exist?(File.join(dir,'dashboard')), 'Dashing directory was not created.' + end + end + +end
\ No newline at end of file |