Sha256: 1f20b7376cde15e8299ba939495c455bd76897167936ef75030a54fb17b4bf1b

Contents?: true

Size: 536 Bytes

Versions: 9

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'
require 'appraisal/appraisal_file'

# Requiring this to make the test pass on Rubinius 2.2.5
# https://github.com/rubinius/rubinius/issues/2934
require 'rspec/matchers/built_in/raise_error'

describe Appraisal::AppraisalFile do
  it "complains when no Appraisals file is found" do
    allow(File).to receive(:exist?).with(/Gemfile/).and_return(true)
    allow(File).to receive(:exist?).with("Appraisals").and_return(false)
    expect { described_class.new }.to raise_error(Appraisal::AppraisalsNotFound)
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/appraisal/appraisal_file_spec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/appraisal/appraisal_file_spec.rb
appraisal-2.5.0 spec/appraisal/appraisal_file_spec.rb
appraisal-2.4.1 spec/appraisal/appraisal_file_spec.rb
appraisal-2.4.0 spec/appraisal/appraisal_file_spec.rb
appraisal-2.3.0 spec/appraisal/appraisal_file_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/spec/appraisal/appraisal_file_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/spec/appraisal/appraisal_file_spec.rb
appraisal-2.2.0 spec/appraisal/appraisal_file_spec.rb