Sha256: f939622d29e467b84a345686da9df2ac287850fae46776aa50a76f81ec2eb354

Contents?: true

Size: 666 Bytes

Versions: 64

Compression:

Stored size: 666 Bytes

Contents

require "spec_helper"
require "foreman/engine"
require "foreman/export"

describe "Foreman::Export::Base", :fakefs do
  let(:procfile) { FileUtils.mkdir_p("/tmp/app"); write_procfile("/tmp/app/Procfile") }
  let(:location) { "/tmp/init" }
  let(:engine)   { Foreman::Engine.new().load_procfile(procfile) }
  let(:subject)  { Foreman::Export::Base.new(location, engine) }

  it "has a say method for displaying info" do
    mock(subject).puts("[foreman export] foo")
    subject.send(:say, "foo")
  end

  it "raises errors as a Foreman::Export::Exception" do
    lambda { subject.send(:error, "foo") }.should raise_error(Foreman::Export::Exception, "foo")
  end
end

Version data entries

64 entries across 64 versions & 3 rubygems

Version Path
foreman-0.67.0-mingw32 spec/foreman/export/base_spec.rb
foreman-0.67.0-java spec/foreman/export/base_spec.rb
foreman-0.67.0 spec/foreman/export/base_spec.rb
foreman-0.66.0-mingw32 spec/foreman/export/base_spec.rb
foreman-0.66.0-java spec/foreman/export/base_spec.rb
foreman-0.66.0 spec/foreman/export/base_spec.rb
foreman-0.65.0 spec/foreman/export/base_spec.rb
foreman-0.64.0 spec/foreman/export/base_spec.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/foreman-0.63.0/spec/foreman/export/base_spec.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/foreman-0.63.0/spec/foreman/export/base_spec.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/foreman-0.63.0/spec/foreman/export/base_spec.rb
foreman-capistrano-0.53.4 spec/foreman/export/base_spec.rb
foreman-0.63.0-mingw32 spec/foreman/export/base_spec.rb
foreman-0.63.0-java spec/foreman/export/base_spec.rb
foreman-0.63.0 spec/foreman/export/base_spec.rb
foreman-0.62.0-mingw32 spec/foreman/export/base_spec.rb
foreman-0.62.0-java spec/foreman/export/base_spec.rb
foreman-0.62.0 spec/foreman/export/base_spec.rb
foreman-capistrano-0.53.3 spec/foreman/export/base_spec.rb
foreman-capistrano-0.53.2 spec/foreman/export/base_spec.rb