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