Skip to content

Commit

Permalink
added dependencies for gemspec, removed deprecated calls, removed fai…
Browse files Browse the repository at this point in the history
…ling options from spec.opts.
  • Loading branch information
ksondere committed Mar 14, 2014
1 parent 4aad7ae commit 998e211
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
4 changes: 3 additions & 1 deletion authorize-net.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Gem::Specification.new do |s|
s.name = "authorize-net"
s.version = "2.0"
s.platform = Gem::Platform::RUBY
s.date = "2014-03-31"
s.summary = "authorize.net payments api"
s.description = "authorize.net api includes standard payments, recurring billing, and customer profiles"
s.authors = [""]
s.email = ""
s.email = "[email protected]"
s.files = Dir.glob("{lib}/**/*")
s.homepage = "http://rubygems.org/gems/authorize-net"
s.license = "MIT"
s.add_runtime_dependency "nokogiri", "~> 1.4", ">= 1.4.3"
end
2 changes: 1 addition & 1 deletion spec/aim_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
end

it "should parse the response properly" do
Net::HTTP.stub!(:start).and_return(@response)
Net::HTTP.stub(:start).and_return(@response)
transaction = AuthorizeNet::AIM::Transaction.new(@api_login, @api_key, :transaction_type => @type, :gateway => @gateway, :test => @test_mode)
response = transaction.purchase(@amount, @credit_card)
response.should be_kind_of(AuthorizeNet::AIM::Response)
Expand Down
18 changes: 9 additions & 9 deletions spec/reporting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@
it "should be able to build a batch statistics entity" do
# stub our connection response
net_response = Net::HTTPOK.new('1.1', 200, 'OK')
net_response.stub!(:body).and_return(@response)
net_response.stub(:body).and_return(@response)
connection = Net::HTTP.new('http://www.example.com')
connection.stub!(:start).and_return(net_response)
Net::HTTP.stub!(:new).and_return(connection)
connection.stub(:start).and_return(net_response)
Net::HTTP.stub(:new).and_return(connection)

transaction = AuthorizeNet::Reporting::Transaction.new(@api_login, @api_key, :gateway => :sandbox)
transaction.should respond_to(:get_settled_batch_list)
Expand Down Expand Up @@ -279,10 +279,10 @@

# stub our connection response
net_response = Net::HTTPOK.new('1.1', 200, 'OK')
net_response.stub!(:body).and_return(@response)
net_response.stub(:body).and_return(@response)
connection = Net::HTTP.new('http://www.example.com')
connection.stub!(:start).and_return(net_response)
Net::HTTP.stub!(:new).and_return(connection)
connection.stub(:start).and_return(net_response)
Net::HTTP.stub(:new).and_return(connection)

transaction = AuthorizeNet::Reporting::Transaction.new(@api_login, @api_key, :gateway => :sandbox)
transaction.should respond_to(:get_transaction_list)
Expand Down Expand Up @@ -379,10 +379,10 @@

# stub our connection response
net_response = Net::HTTPOK.new('1.1', 200, 'OK')
net_response.stub!(:body).and_return(@response)
net_response.stub(:body).and_return(@response)
connection = Net::HTTP.new('http://www.example.com')
connection.stub!(:start).and_return(net_response)
Net::HTTP.stub!(:new).and_return(connection)
connection.stub(:start).and_return(net_response)
Net::HTTP.stub(:new).and_return(connection)

transaction = AuthorizeNet::Reporting::Transaction.new(@api_login, @api_key, :gateway => :sandbox)
transaction.should respond_to(:get_transaction_details)
Expand Down
3 changes: 0 additions & 3 deletions spec/spec.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
--colour
--format progress
--loadby mtime
--reverse
--debugger

0 comments on commit 998e211

Please sign in to comment.