Sha256: 02832915cc746ec80669718104cb43d3029f7e9045295f1fcd9133af2bec8e4f
Contents?: true
Size: 702 Bytes
Versions: 47
Compression:
Stored size: 702 Bytes
Contents
require "spec_helper" describe Brightbox::BBConfig do describe "#client_id" do context "when client has old 'alias' key" do let(:contents) do <<-EOS [core] default_client = section [section] alias = alias client_id = cli-12345 EOS end let(:config) { config_from_contents(contents) } it "returns the identifier" do expect(config.client_id).to eql("cli-12345") end it "doesn't return the section header" do expect(config.client_id).to_not eql("section") end it "doesn't return the alias" do expect(config.client_id).to_not eql("alias") end end end end
Version data entries
47 entries across 47 versions & 1 rubygems