Sha256: 7230c36aa707e5b37c7235cefa9efaa49c630be5f4ed0374a5a87047caf61837
Contents?: true
Size: 721 Bytes
Versions: 10
Compression:
Stored size: 721 Bytes
Contents
require 'spec_helper' describe Anvil::Config, fakefs: true do subject { Anvil::Config } before { Anvil::Config.reset } its('github.user') { should be_nil } its('github.token') { should be_nil } context 'with a config file', config: true do its('github.user') { should eq('dummy_user') } its('github.token') { should eq('dummy_token') } end context '.init_base_path' do before { Anvil::Config.send :init_base_path } subject { File } it { should be_directory(Anvil::Config.base_path) } it { should be_directory(Anvil::Config.base_tasks_path) } it { should be_exists(Anvil::Config.base_config_path) } it { should be_exists(Anvil::Config.base_projects_path) } end end
Version data entries
10 entries across 10 versions & 1 rubygems