Sha256: e579e4196ecd0476e4254367724a2918f1a0f8bb76206d51edf3052680a119a7

Contents?: true

Size: 706 Bytes

Versions: 4

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("spec_helper", __dir__)

module Danger
  describe Danger::DangerApkstats do
    it "should be a plugin" do
      expect(Danger::DangerApkstats.new(nil)).to be_a Danger::Plugin
    end

    #
    # You should test your custom attributes and methods here
    #
    describe "with Dangerfile" do
      before do
        @dangerfile = testing_dangerfile
        @my_plugin = @dangerfile.apkstats

        # mock the PR data
        # you can then use this, eg. github.pr_author, later in the spec
        json = File.read(fixture_path + "github_pr.json")
        allow(@my_plugin.github).to receive(:pr_json).and_return(json)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
danger-apkstats-0.2.0 spec/apkstats_spec.rb
danger-apkstats-0.1.2 spec/apkstats_spec.rb
danger-apkstats-0.1.1.pre.1 spec/apkstats_spec.rb
danger-apkstats-0.1.0 spec/apkstats_spec.rb