Sha256: cef9ee69c58bc3028d61896de649919cba536a0dcc64a8045406a10be194f744
Contents?: true
Size: 722 Bytes
Versions: 3
Compression:
Stored size: 722 Bytes
Contents
require_relative '../lib/jefferies_tube' require 'rails' RSpec.describe "Configuration" do describe 'configuration' do it 'allows the Environment name to be initialized' do expect(JefferiesTube.configuration.environment).to_not be_nil end it 'allows a custom environment name & prompt' do JefferiesTube.configure do |config| config.environment = 'production' # If you're using a nonstandard env name but want colors. config.prompt_name = 'ShortName' #For a shorter prompt name if you have a long app end expect(JefferiesTube.configuration.environment).to eq("production") expect(JefferiesTube.configuration.prompt_name).to eq("ShortName") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jefferies_tube-1.2 | spec/configuration_spec.rb |
jefferies_tube-1.1.1 | spec/configuration_spec.rb |
jefferies_tube-1.1.0 | spec/configuration_spec.rb |