Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test coverage with simplecov

  • Loading branch information...
commit 2e287632d127476cef1616b5e9893658b64e7060 1 parent 86719a6
@jdtornow authored
View
1  .gitignore
@@ -3,4 +3,5 @@ vendor/bundle
.bundle
log/
test/sample/public
+coverage/
*.gem
View
4 .simplecov
@@ -0,0 +1,4 @@
+SimpleCov.start do
+ add_filter "/test/"
+ add_filter "/vendor/"
+end
View
6 Gemfile
@@ -1,2 +1,6 @@
source 'http://rubygems.org'
-gemspec
+gemspec
+
+group :test do
+ gem 'simplecov', :require => false
+end
View
6 Gemfile.lock
@@ -7,8 +7,13 @@ PATH
GEM
remote: http://rubygems.org/
specs:
+ multi_json (1.0.4)
rake (0.9.2.2)
shoulda (2.11.3)
+ simplecov (0.5.4)
+ multi_json (~> 1.0.3)
+ simplecov-html (~> 0.5.3)
+ simplecov-html (0.5.3)
PLATFORMS
ruby
@@ -16,3 +21,4 @@ PLATFORMS
DEPENDENCIES
release!
shoulda (~> 2.11)
+ simplecov
View
2  test/helper.rb
@@ -1,4 +1,6 @@
+require 'simplecov'
require 'shoulda'
+require 'test/unit'
require 'release'
include Release
View
3  test/test_builder.rb
@@ -46,6 +46,9 @@ class TestBuilder < Test::Unit::TestCase
# Directory should exist
assert_equal true, Dir.exists?(sample_destination)
+ # Should be able to get the time it took to run
+ assert_not_nil builder.timer
+
# TODO: Add some more tests here to show what the site should look like
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.