Sha256: d8d37fb5126a0dae972c7c52156eb99839a0f7835279c14800fc770c686844ee

Contents?: true

Size: 533 Bytes

Versions: 19

Compression:

Stored size: 533 Bytes

Contents

require 'spec_helper'

describe Rgentpl do
  describe '.env' do
    it 'shows current environment' do
      expect(Rgentpl.env).to eq('test')
    end

    context 'when none default environment is supplied' do
      before :each do
        Object.send(:remove_const, :TEMPLATE_ENV)
      end

      it 'adds development environment' do
        expect(Rgentpl.env).to eq('development')
      end
    end
  end

  describe '.logger' do
    it 'is a Logger object' do
      expect(Rgentpl.logger).to be_kind_of Logger
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rgentpl-1.2.6 spec/lib/rgentpl_spec.rb
rgentpl-1.2.5 spec/lib/rgentpl_spec.rb
rgentpl-1.2.4.3 spec/lib/rgentpl_spec.rb
rgentpl-1.2.4.2 spec/lib/rgentpl_spec.rb
rgentpl-1.2.4.1 spec/lib/rgentpl_spec.rb
rgentpl-1.2.4 spec/lib/rgentpl_spec.rb
rgentpl-1.2.3 spec/lib/rgentpl_spec.rb
rgentpl-1.2.2 spec/lib/rgentpl_spec.rb
rgentpl-1.2.1 spec/lib/rgentpl_spec.rb
rgentpl-1.2.0 spec/lib/rgentpl_spec.rb
rgentpl-1.0.9 spec/lib/rgentpl_spec.rb
rgentpl-1.0.8 spec/lib/rgentpl_spec.rb
rgentpl-1.0.7 spec/lib/rgentpl_spec.rb
rgentpl-1.0.6 spec/lib/rgentpl_spec.rb
rgentpl-1.0.5 spec/lib/rgentpl_spec.rb
rgentpl-1.0.4 spec/lib/rgentpl_spec.rb
rgentpl-1.0.3 spec/lib/rgentpl_spec.rb
rgentpl-1.0.2 spec/lib/rgentpl_spec.rb
rgentpl-1.0.1 spec/lib/rgentpl_spec.rb