Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoriz committed May 11, 2014
1 parent 9b14375 commit 781b7b4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ruby-tools/cli/spec/job_config_builder_spec.rb
Expand Up @@ -2,7 +2,7 @@

describe Jenkins::JobConfigBuilder do
include ConfigFixtureLoaders

describe "explicit steps to match a ruby job" do
before do
@config = Jenkins::JobConfigBuilder.new(:rails) do |c|
Expand All @@ -18,7 +18,7 @@
expect(steps.map(&:inner_text)).to eq(["step 1", "step 2"])
end
end

describe "rails job; single axis" do
before do
@config = Jenkins::JobConfigBuilder.new(:rails) do |c|
Expand All @@ -29,7 +29,7 @@
expect(config_xml("rails", "single")).to eq(@config.to_xml)
end
end

describe "many rubies" do
before do
@config = Jenkins::JobConfigBuilder.new(:ruby) do |c|
Expand All @@ -40,13 +40,13 @@
it "have have explicit rubies" do
expect(config_xml("ruby", "multi")).to eq(@config.to_xml)
end

it "and many labels/assigned_nodes" do
@config.node_labels = %w[1.8.7 ubuntu]
expect(config_xml("ruby", "multi-ruby-multi-labels")).to eq(@config.to_xml)
end
end

describe "assigned slave nodes for slave usage" do
before do
@config = Jenkins::JobConfigBuilder.new(:rails) do |c|
Expand All @@ -59,7 +59,7 @@
expect(Hpricot.XML(@config.to_xml).search("canRoam").text).to eq("false")
end
end

describe "no specific slave nodes" do
before do
@config = Jenkins::JobConfigBuilder.new(:rails) do |c|
Expand All @@ -69,7 +69,7 @@
expect(Hpricot.XML(@config.to_xml).search("assignedNode").size).to eq(0)
end
end

describe "SCM behaviour" do
describe "#public_scm = true => convert git@ into git:// until we have deploy keys" do
before do
Expand All @@ -82,7 +82,7 @@
expect(config_xml("rails", "single")).to eq(@config.to_xml)
end
end

# <branches>
# <hudson.plugins.git.BranchSpec>
# <name>master</name>
Expand Down Expand Up @@ -217,6 +217,6 @@
expect(config_xml("erlang", "single")).to eq(@config.to_xml)
end
end


end

0 comments on commit 781b7b4

Please sign in to comment.