spec/timber/cli/installers/config_file_spec.rb in timber-2.1.0.rc5 vs spec/timber/cli/installers/config_file_spec.rb in timber-2.1.0.rc6

- old
+ new

@@ -21,12 +21,12 @@ let(:initial_config_contents) { "# Timber.io Ruby Configuration - Simple Structured Logging\n#\n# ^ ^ ^ ^ ___I_ ^ ^ ^ ^ ^ ^ ^\n# /|\\/|\\/|\\ /|\\ /\\-_--\\ /|\\/|\\ /|\\/|\\/|\\ /|\\/|\\\n# /|\\/|\\/|\\ /|\\ / \\_-__\\ /|\\/|\\ /|\\/|\\/|\\ /|\\/|\\\n# /|\\/|\\/|\\ /|\\ |[]| [] | /|\\/|\\ /|\\/|\\/|\\ /|\\/|\\\n# -------------------------------------------------------------------\n# Website: https://timber.io\n# Documentation: https://timber.io/docs\n# Support: support@timber.io\n# -------------------------------------------------------------------\n\nconfig = Timber::Config.instance\n\n# Add additional configuration here.\n# For a full list of configuration options and their explanations see:\n# http://www.rubydoc.info/github/timberio/timber-ruby/Timber/Config\n\n" } describe ".run" do it "should run properly" do path = "/path/to/file" - config_file = Timber::CLI::ConfigFile.new(path) + config_file = Timber::CLI::ConfigFile.new(path, installer.file_helper) - expect(Timber::CLI::ConfigFile).to receive(:new).with(path).and_return(config_file) + expect(Timber::CLI::ConfigFile).to receive(:new).with(path, installer.file_helper).and_return(config_file) expect(config_file).to receive(:exists?).exactly(1).times.and_return(false) expect(installer).to receive(:logrageify?).exactly(1).times.and_return(true) expect(config_file).to receive(:logrageify!).exactly(1).times expect(config_file).to receive(:create!).exactly(1).times \ No newline at end of file