Sha256: f30813be55a69f23936699f91e4c145d80077624399c347b347cda9d9feacf7c

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module SpecAddons
  def allow_project_id(value = ENV['LOKALISE_PROJECT_ID'])
    allow(LokaliseRails).to receive(:project_id).and_return(value)
    return unless block_given?

    yield
    expect(LokaliseRails).to have_received(:project_id)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lokalise_rails-1.4.0 spec/support/spec_addons.rb
lokalise_rails-1.3.1 spec/support/spec_addons.rb
lokalise_rails-1.3.0 spec/support/spec_addons.rb
lokalise_rails-1.2.0 spec/support/spec_addons.rb