blob: 4dc1eb3d0cb64377bfb1b311093ae944658f0aa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|