Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename file; add test

  • Loading branch information...
commit 3c76207ea61f59c5df92b2ee4a94ad9cada1f530 1 parent 84655ac
@citizen428 citizen428 authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/lib/{jenins_api_spec.rb → jenkins_api_spec.rb}
View
8 spec/lib/jenins_api_spec.rb → spec/lib/jenkins_api_spec.rb
@@ -80,6 +80,14 @@
@api.get_job_configuration("FooJob").should be(a)
end
+ it "#create_job_configuration returns a valid job configuration" do
+ xml = <<XML
+<xml><branches><hudson.plugins.git.BranchSpec><name>master</name></hudson.plugins.git.BranchSpec></branches></xml>
+XML
+ xml.should_receive(:body).and_return(xml)
+ @api.class.should_receive(:get).with('/job/foobar.master/config.xml', {}).and_return(xml)
+ @api.create_job_configuration('foobar', 'feature').should =~ /feature/
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.