Sha256: e7190c3fe6cc9158ba57e9189086bb95c63f4375d5ecae6e75ea74fac1dc82e1

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

require "spec_helper"

describe "CI" do
  it "runs rakefile contents" do
    string = SecureRandom.hex

    app = Hatchet::GitApp.new("default_ruby")
    app.run_ci do |test_run|
      expect(test_run.output).to_not match(string)
      expect(test_run.output).to match("Installing rake")

      run!("echo 'puts \"#{string}\"' >> Rakefile")
      test_run.run_again

      expect(test_run.output).to match(string)
      expect(test_run.output).to match("Using rake")
      expect(test_run.output).to_not match("Installing rake")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku_hatchet-8.0.4 spec/hatchet/ci_spec.rb
heroku_hatchet-8.0.3 spec/hatchet/ci_spec.rb