Sha256: 92406d8f456718f03b494e9a86d6f94f08332d99cfb891db8264c15da2ac1b3a

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

describe GithubCLI::Helpers do
  subject { described_class }

  it 'throws error if config file does not exist' do
    subject.stub(:find_configfile) { nil }
    expect {
      subject.default_configfile
    }.to raise_error(GithubCLI::ConfigFileNotFound)
  end

  it 'finds current directory' do
    current = File.expand_path('../../../', __FILE__)
    described_class.find_configfile.should == current
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_cli-0.3.0 spec/github_cli/helpers_spec.rb
github_cli-0.2.1 spec/github_cli/helpers_spec.rb
github_cli-0.2.0 spec/github_cli/helpers_spec.rb
github_cli-0.1.3 spec/github_cli/helpers_spec.rb