Sha256: 6933571a19996073a9e8b9d499c115571939c97eee1efbe81934aa316c5c0e7c
Contents?: true
Size: 819 Bytes
Versions: 64
Compression:
Stored size: 819 Bytes
Contents
require "spec_helper" describe Brightbox::BBConfig do let(:expected_token) { random_token } before do contents = <<-EOS [app-12345] client_id = app-12345 EOS @config = config_from_contents(contents) end describe "#access_token" do context "when value has been set" do it "returns set value" do @config.access_token = expected_token expect(@config.access_token).to eql(expected_token) end end context "when cache file exists" do it "returns value from file" do cache_access_token(@config, expected_token) expect(@config.access_token).to eql(expected_token) end end context "when cache files does not exist" do it "returns nil" do expect(@config.access_token).to be_nil end end end end
Version data entries
64 entries across 64 versions & 1 rubygems