Skip to content

Commit

Permalink
Tweaked the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mort666 committed Jun 6, 2012
1 parent 1f9538c commit 0e2e2a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/lib/veracode/builds_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require (File.expand_path('./../../../spec_helper', __FILE__))

describe Veracode::Results do
describe "GET profile" do
describe "GET builds" do

let(:veracode) { Veracode::Results.new(:username => "test", :password => "test") }

Expand Down
2 changes: 1 addition & 1 deletion spec/lib/veracode/detailed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
VCR.eject_cassette
end

it "must have a get_application_builds method" do
it "must have a get_detailed_report method" do
veracode.must_respond_to :get_detailed_report
end

Expand Down
4 changes: 4 additions & 0 deletions spec/lib/veracode/summary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
VCR.eject_cassette
end

it "must have a get_summary_report method" do
veracode.must_respond_to :get_summary_report
end

it "must parse the api response from XML to Veracode::Result::SummaryReport" do
veracode.get_summary_report("44905").must_be_instance_of Veracode::Result::SummaryReport
end
Expand Down

0 comments on commit 0e2e2a0

Please sign in to comment.