Sha256: 0d59b363194da157deb7780c24e8e835cfcc679991d477b1f6d4a6809595e793
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' describe Octogate::ConfigLoader do describe ".load_config" do before do Octogate.config.token = nil Octogate.config.targets = [] end subject { Octogate::ConfigLoader.load_config(config_file) } it "evaluate config on ConfigLoader instance binding" do from_token = Octogate.config.token from_targets = Octogate.config.targets expect(from_token).to be_nil expect(from_targets).to eq([]) subject expect(Octogate.config.token).to eq("token") expect(Octogate.config.targets).to have(6).item expect(Octogate.config.targets.first).to be_a Octogate::Target end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octogate-0.1.0 | spec/lib/octogate/config_loader_spec.rb |