Sha256: 96b7a87bf71a6b404435e2bcd75deac59dca4e589155d7774a083dc78c2147f5

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

require "spec_helper"
require "job_provider"

describe "getting a jenkins job config xml" do
  use_natural_assertions
  Given(:job) { JobProvider.new.job_template *arguments  }

  context "with default arguments" do
    Given(:arguments) { ["https://github.com/hayesmp/railsgirls-app.git", "bundle exec rake"] }
    Then { not job.nil? }
    Then { job.class == String }
  end

  context "with custom arguments" do
    Given(:arguments) { ["https://github.com/hayesmp/rumm.git", "custom command"] }
    Then { job.include?("https://github.com/hayesmp/rumm.git")==true }
    Then { job.include?("custom command")==true }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rumm-0.1.0 spec/providers/job_provider_spec.rb