Sha256: 99ed14b235886b1d23279ce36bff46c3269305b7e1962151e6032d83beb42159

Contents?: true

Size: 734 Bytes

Versions: 10

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

require File.expand_path("spec_helper", __dir__)

module Danger
  describe Danger::DangerCheckstyleReports do
    it "should be a plugin" do
      expect(Danger::DangerCheckstyleReports.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.checkstyle_reports

        # 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

10 entries across 10 versions & 3 rubygems

Version Path
danger-space_checkstyle_reports-1.0.3 spec/checkstyle_reports_spec.rb
danger-space_checkstyle_reports-1.0.2 spec/checkstyle_reports_spec.rb
ktlint_reporter-1.0.1 spec/checkstyle_reports_spec.rb
ktlint_reporter-1.0.0 spec/checkstyle_reports_spec.rb
ktlint_reporter-0.1.2 spec/checkstyle_reports_spec.rb
ktlint_reporter-0.1.1 spec/checkstyle_reports_spec.rb
ktlint_reporter-0.1.0 spec/checkstyle_reports_spec.rb
danger-checkstyle_reports-0.1.0 spec/checkstyle_reports_spec.rb
danger-checkstyle_reports-0.0.1.pre.rc02 spec/checkstyle_reports_spec.rb
danger-checkstyle_reports-0.0.1.pre.rc01 spec/checkstyle_reports_spec.rb