Sha256: 8dade8b46c0b0e5d18ab91d2e5857260e75eb04d170124a09c23976d9fd00366
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' describe 'PGit::Configuration::NotFoundError' do it 'should inherit from PGit::Error' do ancestors = PGit::Configuration::NotFoundError.ancestors expect(ancestors).to include (PGit::Error) end it 'should complain that the Configuration file does not exist' do fake_config_path = "/Users/edderic/some/path/to/.pgit.rc.yml" not_found_error = PGit::Configuration::NotFoundError.new(fake_config_path) message = not_found_error.instance_eval{ @message } expect(message).to eq "#{fake_config_path} configuration file does not exist. Please run `pgit install`" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-0.0.4 | spec/pgit/configuration/not_found_error_spec.rb |