spec/plugin_spec.rb in danger-iblinter-0.0.1 vs spec/plugin_spec.rb in danger-iblinter-0.0.2
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
require File.expand_path("spec_helper", __dir__)
module Danger
- describe Danger::DangerIBLinter do
+ describe Danger::DangerIblinter do
it "should be a plugin" do
- expect(Danger::DangerIBLinter.new(nil)).to be_a Danger::Plugin
+ expect(Danger::DangerIblinter.new(nil)).to be_a Danger::Plugin
end
describe "with Dangerfile" do
before do
@dangerfile = testing_dangerfile
@@ -18,10 +18,10 @@
json = File.read(File.dirname(__FILE__) + "/support/fixtures/github_pr.json")
allow(@iblinter.github).to receive(:pr_json).and_return(json)
end
it "inline comment works with relative path" do
- linter = IBLinter.new("/path/to/binary")
+ linter = IBLinterRunner.new("/path/to/binary")
allow(linter).to receive(:lint) do
JSON.parse(File.read(File.dirname(__FILE__) + "/support/fixtures/iblinter.json"))
end
allow(@iblinter).to receive(:iblinter).and_return(linter)
allow(Dir).to receive(:pwd).and_return("/home/projects")