Sha256: bc389c2a33998d91a4c60d7217def1661c59f3822bc81bd58c5021e018d71f6d

Contents?: true

Size: 1.25 KB

Versions: 24

Compression:

Stored size: 1.25 KB

Contents

require_relative 'spec_helper'

describe "Ruby Versions" do
  it "should deploy ruby 1.8.7 properly" do
    Hatchet::AnvilApp.new("mri_187", :buildpack => buildpack).deploy do |app, heroku, output|
      expect(app).to be_deployed
      expect(successful_body(app)).to match("ruby 1.8.7")
    end
  end

  it "should deploy ruby 1.9.2 properly" do
    Hatchet::AnvilApp.new("mri_192", :buildpack => buildpack).deploy do |app, heroku, output|
      expect(app).to be_deployed
      expect(successful_body(app)).to match("ruby 1.9.2")
    end
  end

  it "should deploy ruby 1.9.2 properly (git)" do
    Hatchet::GitApp.new("mri_192", :buildpack => git_repo).deploy do |app, heroku, output|
      expect(app).to be_deployed
      expect(successful_body(app)).to match("ruby 1.9.2")
    end
  end

  it "should deploy ruby 1.9.3 properly" do
    Hatchet::AnvilApp.new("mri_193", :buildpack => buildpack).deploy do |app, heroku, output|
      expect(app).to be_deployed
      expect(successful_body(app)).to match("ruby 1.9.3")
    end
  end

  it "should deploy ruby 2.0.0 properly" do
    Hatchet::AnvilApp.new("mri_200", :buildpack => buildpack).deploy do |app, heroku|
      expect(app).to be_deployed
      expect(successful_body(app)).to match("ruby 2.0.0")
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
heroku_hatchet-1.3.7 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.6 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.5 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.4 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.3 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.2 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.1 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.3.0 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.2.1 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.2.0 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.9 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.8 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.7 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.6 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.5 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.4 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.3 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.2 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.1 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb
heroku_hatchet-1.1.0 test/fixtures/buildpacks/heroku-buildpack-ruby/spec/rubies_spec.rb