Sha256: 94765509cf0c5e10a435953fca28fcf85988f56ccc4c53f4abc7b362d2b95b75
Contents?: true
Size: 887 Bytes
Versions: 47
Compression:
Stored size: 887 Bytes
Contents
require "spec_helper" describe Brightbox::BBConfig do describe "#save_default_account" do context "when setting has not changed" do let(:account_id) { "acc-12345" } let(:config) do <<-EOS [core] default_client=cli-15243 [cli-15243] default_account=#{account_id} EOS end before do @config = config_from_contents(config) end it "does not dirty the config" do @config.save_default_account(account_id) expect(@config).to_not be_dirty end end context "when setting has changed" do let(:account_id) { "acc-54321" } before do @config = config_from_contents(USER_APP_CONFIG_CONTENTS) end it "dirties the config" do @config.save_default_account(account_id) expect(@config).to be_dirty end end end end
Version data entries
47 entries across 47 versions & 1 rubygems