Sha256: 8105a09125d9bf8e2d443fe825ba81f0cf62dd107f12b787b20607303244c816

Contents?: true

Size: 780 Bytes

Versions: 5

Compression:

Stored size: 780 Bytes

Contents

require "spec_helper"

describe CandyCheck::CLI::Commands::PlayStore do
  include WithCommand
  subject { CandyCheck::CLI::Commands::PlayStore.new(package_name, product_id, token, "json_key_file" => json_key_file) }
  let(:package_name) { "my_package_name" }
  let(:product_id) { "my_product_id" }
  let(:token) { "my_token" }
  let(:json_key_file) { File.expand_path("../../fixtures/play_store/random_dummy_key.json", __dir__) }

  it "calls and outputs the verifier" do
    VCR.use_cassette("play_store/product_purchases/valid_but_not_consumed") do
      run_command!
      assert_equal "CandyCheck::PlayStore::ProductPurchases::ProductPurchase:", out.lines.first
      assert_equal CandyCheck::PlayStore::ProductPurchases::ProductPurchase, out.lines[1].class
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
candy_check-0.5.0 spec/cli/commands/play_store_spec.rb
candy_check-0.4.0 spec/cli/commands/play_store_spec.rb
candy_check-0.3.0 spec/cli/commands/play_store_spec.rb
candy_check-0.2.1 spec/cli/commands/play_store_spec.rb
candy_check-0.2.0 spec/cli/commands/play_store_spec.rb