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
26 changes: 22 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
before_install:
- "echo DAMN I LOVE YOU JOSH"
- envgemfile:
- gemfiles/rails-3.gemfile
- gemfiles/rails-3-1.gemfile
- gemfiles/rails-3-2.gemfile

language: ruby

env:
- DEV=ACADEMY
- DEV=FAILE

before_install:
- echo $DEV

rvm:
- 1.9.3
- 2.0.0
Expand All @@ -9,8 +23,12 @@ rvm:
- jruby
- rbx

gemfile:
- gemfiles/rails-3.gemfile
- gemfiles/rails-3-1.gemfile
matrix:
allow_failures:
- rvm: 2.1
- rvm: 2.2
- rvm: ruby-head
- rvm: rbx

sudo: false

sudo: false
6 changes: 5 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ end

appraise "rails-3-1" do
gem "activemodel", "~> 3.1.0"
end
end

appraise "rails-3-2" do
gem "activemodel", "~> 3.2.0"
end
10 changes: 10 additions & 0 deletions gemfiles/rails-3-2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "activemodel", "~> 3.2.0"
gem "rake", "~> 0.8.7"
gem "shoulda", "~> 2.11.3"
gem "mocha", "~> 0.9.8"
gem "appraisal"

4 changes: 4 additions & 0 deletions test/scoring_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class ScoringTest < Test::Unit::TestCase
assert_equal 20, @st.completeness_score
end

should "not have an absolute completeness score of 30" do
assert_not_equal 30, @st.completeness_score
end

should "have a relative completeness score of 0 (percent complete)" do
assert_equal 100, @st.percent_complete
end
Expand Down
6 changes: 0 additions & 6 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
begin
require 'bundler/setup'
rescue LoadError
puts 'although not required, its recommended you use bundler when running the tests'
end

require 'test/unit'
require 'shoulda'
require 'mocha'
Expand Down