Skip to content

Commit

Permalink
Testing against minitest 5 / Rails 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tute committed Aug 15, 2014
1 parent 7777796 commit 0ed98e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -2,14 +2,14 @@ source 'https://rubygems.org'

gemspec

version = ENV['RAILS_VERSION'] || '3.2'
version = ENV['RAILS_VERSION'] || '4.1'
rails = case version
when 'master'
{ github: 'rails/rails' }
when '4.0-protected-attributes'
gem 'protected_attributes'
"~> #{version}.0"
when '4.0'
when /4\.0|4\.1/
"~> #{version}.0"
when '3.2'
gem 'strong_parameters'
Expand Down
3 changes: 1 addition & 2 deletions merit.gemspec
Expand Up @@ -13,10 +13,9 @@ Gem::Specification.new do |s|

s.add_dependency 'ambry', '~> 0.3.0'
s.add_development_dependency 'rails', '>= 3.2.0'
s.add_development_dependency 'jquery-rails', '~> 2.1'
s.add_development_dependency 'capybara'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'rubocop'
s.add_development_dependency 'minitest-rails'
s.add_development_dependency 'minitest-rails', '2.1.0'
s.add_development_dependency 'mocha', '0.14'
end
7 changes: 2 additions & 5 deletions test/unit/score_test.rb
Expand Up @@ -2,11 +2,8 @@

describe Merit::Score do
it 'Point#sash_id delegates to Score' do
score = mock()
score.stubs(:sash_id).returns(33)

point = Merit::Score::Point.new
point.stubs(:score).returns(score)
score = Merit::Score.new(sash_id: 33)
point = Merit::Score::Point.new(score: score)

point.sash_id.must_be :==, score.sash_id
end
Expand Down

0 comments on commit 0ed98e8

Please sign in to comment.