Sha256: 49b05515c7dc5cd931519aabb0d94646f197deb9040f5ae09960b34837c377c6

Contents?: true

Size: 394 Bytes

Versions: 9

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module SpecAddons
  def allow_project_id(obj, value)
    allow(obj.config).to receive(:project_id).and_return(value)
    return unless block_given?

    yield
    expect(obj.config).to have_received(:project_id)
  end

  def expect_file_exist(path, file)
    file_path = File.join path, file
    expect(File.file?(file_path)).to be true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lokalise_manager-2.2.1 spec/support/spec_addons.rb
lokalise_manager-3.0.0 spec/support/spec_addons.rb
lokalise_manager-2.2.0 spec/support/spec_addons.rb
lokalise_manager-2.1.0 spec/support/spec_addons.rb
lokalise_manager-2.0.0 spec/support/spec_addons.rb
lokalise_manager-1.2.1 spec/support/spec_addons.rb
lokalise_manager-1.2.0 spec/support/spec_addons.rb
lokalise_manager-1.1.0 spec/support/spec_addons.rb
lokalise_manager-1.0.0 spec/support/spec_addons.rb