summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/app_test.rb1
-rw-r--r--test/cli_test.rb8
2 files changed, 5 insertions, 4 deletions
diff --git a/test/app_test.rb b/test/app_test.rb
index 4101e91..36cd310 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -145,6 +145,7 @@ class AppTest < Dashing::Test
cli.stubs(:source_paths).returns([source_path])
silent { cli.new 'new_project' }
+ app.settings.public_folder = File.join(dir, 'new_project/public')
app.settings.views = File.join(dir, 'new_project/dashboards')
app.settings.root = File.join(dir, 'new_project')
yield app.settings.root
diff --git a/test/cli_test.rb b/test/cli_test.rb
index 567827e..4d82296 100644
--- a/test/cli_test.rb
+++ b/test/cli_test.rb
@@ -68,10 +68,10 @@ class CLITest < Dashing::Test
Dir.stubs(:pwd).returns('')
Dashing::Downloader.stubs(:get_gist).returns(JSON.parse(json_response))
- @cli.stubs(:create_file).with('/jobs/ruby_job.rb', 'some job content').once
- @cli.stubs(:create_file).with('/widgets/num/num.html', 'some html content').once
- @cli.stubs(:create_file).with('/widgets/num/num.scss', 'some sass content').once
- @cli.stubs(:create_file).with('/widgets/num/num.coffee', 'some coffee content').once
+ @cli.stubs(:create_file).with('/jobs/ruby_job.rb', 'some job content', {:skip => false}).once
+ @cli.stubs(:create_file).with('/widgets/num/num.html', 'some html content', {:skip => false}).once
+ @cli.stubs(:create_file).with('/widgets/num/num.scss', 'some sass content', {:skip => false}).once
+ @cli.stubs(:create_file).with('/widgets/num/num.coffee', 'some coffee content', {:skip => false}).once
capture_io { @cli.install(123) }
end