Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
/log/*.log
/tmp

* SimpleCov test coverage
/coverage

config/settings.local.yml
config/settings/*.local.yml
config/environments/*.local.yml
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ end
group :development, :test do
gem 'rspec-rails', '~> 2.0'
gem 'shoulda'
gem 'simplecov', require: false
end

# jQuery
Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ GEM
shoulda-matchers (1.4.2)
activesupport (>= 3.0.0)
bourne (~> 1.1.2)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.3.3)
sprockets (2.2.2)
hike (~> 1.2)
Expand Down Expand Up @@ -164,6 +168,7 @@ DEPENDENCIES
rspec-rails (~> 2.0)
sass-rails (~> 3.2.3)
shoulda
simplecov
sqlite3
thin
uglifier (>= 1.0.3)
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ Amazon Payments works great for us, but it may not work out for everyone. If you

### Tests

There aren't any tests yet. Tests are very welcome!

There are some tests, but not 100% test coverage. Tests are very welcome!

```bash
rake spec COVERAGE=true
open coverage/index.html
```
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if ENV['COVERAGE']
require 'simplecov'
SimpleCov.start 'rails'
end

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
Expand Down