ActiveMerchant
gem バージョン 1.4.1の単体テストを実行しようとしています。https://github.com/Shopify/active_merchant/tree/v1.4.1
最初に実行しました: rake -T でエラーが発生しました:
uninitialized constant ActiveMerchant::Validateable::HashWithIndifferentAccess
次を追加して、最初のエラーを修正しました。
gem 'activesupport', "=2.3.4"
require 'active_support'
Rakefile の上部にあります(https://github.com/Shopify/active_merchant/blob/v1.4.1/Rakefile
)。HashWithIndifferentAccess
正確なバージョンを指定しなければならなかったことに注意してください(の以降のバージョンには存在しないと思いますActiveSupport).
rake test:units を実行すると、同じエラーが発生します。
uninitialized constant ActiveMerchant::Validateable::HashWithIndifferentAccess
実行しようとするタスクは次のとおりです (同じ Rakefile 内)。
Rake::TestTask.new(:units) do |t|
t.pattern = 'test/unit/**/*_test.rb'
t.ruby_opts << '-rubygems'
t.verbose = true
end
このエラーを取り除くにはどうすればよいですか? タスク内で activesupport gem を指定する必要がありますか?