Sha256: 549043992fc179dd4cb4c714e370b710a5734811247fb433e8216b15ae2531ef

Contents?: true

Size: 504 Bytes

Versions: 16

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'
require 'github_heroku_deployer/heroku'

describe GithubHerokuDeployer::Heroku do
  context "#find_or_create" do
    it "creates app if it does not find it" do
      heroku = GithubHerokuDeployer::Heroku.new(
        heroku_api_key: "asdfghjkl",
        heroku_app_name: "asdfghjkl")
      heroku.stub("find_app").and_raise(::Heroku::API::Errors::NotFound.new("", ""))
      heroku.stub("create_app").and_return true
      heroku.find_or_create_app.should be true
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
github_heroku_deployer-0.2.1 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.2.0 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.9 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.8 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.7 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.6 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.5 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.4 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.3 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.2 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.1 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.1.0 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.0.5 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.0.4 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.0.3 spec/lib/github_heroku_deployer/heroku_spec.rb
github_heroku_deployer-0.0.2 spec/lib/github_heroku_deployer/heroku_spec.rb