Skip to content

Commit

Permalink
update dependencies for green specs
Browse files Browse the repository at this point in the history
  • Loading branch information
grodowski committed Nov 30, 2018
1 parent 8a8f83a commit 7f56835
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion state_validations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency "activesupport", ">= 3.0.0"

gem.add_development_dependency "rake"
gem.add_development_dependency "test-unit", "= 2.2"
gem.add_development_dependency "test-unit"
gem.add_development_dependency "mocha"
gem.add_development_dependency "shoulda"
end
6 changes: 4 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
require 'test/unit'
require 'shoulda'
require 'mocha'
require 'mocha/integration/test_unit'
require 'mocha/test_unit'
require 'active_support'
require 'active_support/core_ext'
require 'active_model'

require 'shoulda'

require 'state_validations'
2 changes: 1 addition & 1 deletion test/unit/helper_methods_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'test_helper'

class HelperMethodsTest < ActiveSupport::TestCase
class HelperMethodsTest < Test::Unit::TestCase
context "The helper methods on a perfectly valid state history" do
setup do
now = DateTime.new(2011, 2, 3, 5, 8, 13)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/state_history_entry_validator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveModel
module Validations

class StateHistoryEntryValidatorTest < ActiveSupport::TestCase
class StateHistoryEntryValidatorTest < Test::Unit::TestCase
context "An \"perfect\" account state history entry" do
setup do
@now = DateTime.new(2011, 2, 3, 5, 8, 13)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/state_history_validator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module ActiveModel
module Validations

class StateHistoryValidatorTest < ActiveSupport::TestCase
class StateHistoryValidatorTest < Test::Unit::TestCase
context "A perfectly valid state history" do
setup do
now = DateTime.new(2011, 2, 3, 5, 8, 13)
Expand Down Expand Up @@ -274,7 +274,7 @@ def state_history_stub(state_history, options = {})
end_attr = options[:end] || :end
sort_dir = options[:sort_dir] || "ASC"

order_by = options[:order] ||
order_by = options[:order] ||
"#{start_attr} #{sort_dir}, ISNULL(#{end_attr}) #{sort_dir}, #{end_attr} #{sort_dir}"

state_history.stubs(:order).with(order_by).returns(state_history)
Expand Down

0 comments on commit 7f56835

Please sign in to comment.