Skip to content

Commit

Permalink
HDFC gateway: #test? method should be public
Browse files Browse the repository at this point in the history
  • Loading branch information
ntalbott committed Oct 19, 2012
1 parent 9bdf375 commit 0f91342
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/active_merchant/billing/gateways/hdfc.rb
Expand Up @@ -56,6 +56,10 @@ def refund(amount, authorization, options={})
commit("refund", post)
end

def test?
@options[:test] || super
end

private

CURRENCY_CODES = Hash.new{|h,k| raise ArgumentError.new("Unsupported currency for HDFC: #{k}")}
Expand Down Expand Up @@ -197,10 +201,6 @@ def escape(string, max_length=250)
end
string.gsub(/[^A-Za-z0-9 \-_@\.\n]/, '')
end

def test?
@options[:test] || super
end
end
end
end
Expand Down

0 comments on commit 0f91342

Please sign in to comment.