Sha256: f0b4793030c48e4751b855db56f4f7fc3c8f24102d830594c785e275370ba082

Contents?: true

Size: 618 Bytes

Versions: 1

Compression:

Stored size: 618 Bytes

Contents

require "mellon"

$stderr.puts "If asked for a password, just press enter. There is no password."

keychain_path = File.expand_path("./temporary_keychain.keychain", __dir__)
original_keychain_path = File.expand_path("./keychain.keychain", __dir__)

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = [:expect, :should]
  end

  config.mock_with :rspec do |c|
    c.syntax = :should
  end

  config.around do |example|
    FileUtils.cp(original_keychain_path, keychain_path)
    example.run
    FileUtils.rm(keychain_path)
  end

  define_method :keychain_path do
    keychain_path
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mellon-1.1.1 spec/spec_helper.rb