Sha256: 0f2560107104428c18c27bf41b2d1177845f3b3e418951cc560254f237a74047
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe GitReflow::Logger do context "defaults" do it "logs to '/tmp/git-reflow.log' by default" do logger = described_class.new expect(logger.instance_variable_get("@logdev").dev.path).to eq GitReflow::Logger::DEFAULT_LOG_FILE end context "when a log path is configured " do it "initializes a new logger with the given path" do allow(GitReflow::Config).to receive(:get).with("reflow.log_file_path").and_return("kenny-loggins.log") logger = described_class.new expect(logger.instance_variable_get("@logdev").dev.path).to eq "kenny-loggins.log" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_reflow-0.8.8 | spec/lib/git_reflow/logger_spec.rb |
git_reflow-0.8.7 | spec/lib/git_reflow/logger_spec.rb |