-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now loading all files to ensure code coverage is accurate; Added temp…
…lates test; Updated rdoc dependency
- Loading branch information
Showing
6 changed files
with
52 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
require 'simplecov' | ||
require 'coveralls' | ||
|
||
=begin | ||
module SimpleCov::Configuration | ||
def clean_filters | ||
@filters = [] | ||
end | ||
end | ||
SimpleCov.configure do | ||
clean_filters | ||
load_profile 'test_frameworks' | ||
end | ||
ENV["COVERAGE"] && SimpleCov.start do | ||
add_filter "/.rvm/" | ||
end | ||
=end | ||
|
||
require 'rubygems' | ||
require 'bundler' | ||
|
||
Coveralls.wear! | ||
|
||
begin | ||
Bundler.setup(:default, :development) | ||
rescue Bundler::BundlerError => e | ||
$stderr.puts e.message | ||
$stderr.puts "Run `bundle install` to install missing gems" | ||
exit e.status_code | ||
end | ||
|
||
require 'test/unit' | ||
require 'shoulda' | ||
|
||
module SimpleCov::Configuration | ||
def clean_filters | ||
@filters = [] | ||
end | ||
end | ||
|
||
SimpleCov.configure do | ||
clean_filters | ||
load_profile 'test_frameworks' | ||
end | ||
|
||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ | ||
SimpleCov::Formatter::HTMLFormatter, | ||
Coveralls::SimpleCov::Formatter | ||
] | ||
|
||
ENV["COVERAGE"] && SimpleCov.start do | ||
add_filter "/.rvm/" | ||
add_filter "/.rbenv/" | ||
end | ||
|
||
Coveralls.wear! | ||
|
||
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
$LOAD_PATH.unshift(File.dirname(__FILE__)) | ||
require 'server' | ||
|
||
# Load all our application files to ensure that code coverage is accurate | ||
require 'loader' | ||
|
||
class Test::Unit::TestCase | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'server/cli' | ||
require 'server/colorizer' | ||
require 'server/conf' | ||
require 'server/installed' | ||
require 'server/log' | ||
require 'server/signals' | ||
require 'server/step' | ||
require 'server/sys' | ||
require 'server/workflows/db' | ||
require 'server/workflows/web' | ||
require 'server/packages/nginx' | ||
require 'server/packages/phpfpm' | ||
require 'server/packages/templates/nginx' | ||
require 'server/packages/templates/renderer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require 'helper' | ||
require 'server/packages/templates/renderer' | ||
|
||
class TestTemplates < Test::Unit::TestCase | ||
|
||
context "Templates" do | ||
|
||
should "find the raw template path" do | ||
assert Server::Templates::Renderer.template_path.is_a? String | ||
end | ||
|
||
end | ||
|
||
end |