Sha256: 1e8afad1f4d7a6f625818c1b3d05f7606c89800cb583b856315091b1b19eada4
Contents?: true
Size: 749 Bytes
Versions: 7
Compression:
Stored size: 749 Bytes
Contents
require 'spec_helper' RSpec.describe PolishGeeks::DevTools do subject { described_class } describe '.gem_root' do context 'when we want to get gem root path' do let(:path) { Dir.pwd } it do expect(subject.gem_root).to eq path end end end describe '.app_root' do context 'when we want to get app root path' do before do expect(ENV).to receive(:[]).with('BUNDLE_GEMFILE').and_return('/') end it { expect(subject.app_root).to eq '/' } end end describe '.setup' do let(:config_block) { ->{} } it 'should pass it to Config setup method' do expect(described_class::Config) .to receive(:setup) subject.setup(&config_block) end end end
Version data entries
7 entries across 7 versions & 1 rubygems