Sha256: dc31ed683bc3440e5103aca4d7b6d7fa0d95d7ec0ada14b4e2ff96fbe29a2813
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' require '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::File 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appraisal-2.1.0 | spec/appraisal/file_spec.rb |
appraisal-2.0.2 | spec/appraisal/file_spec.rb |