spec/plugin_spec.rb in danger-iblinter-0.0.3 vs spec/plugin_spec.rb in danger-iblinter-0.0.4
- old
+ new
@@ -28,14 +28,14 @@
allow(@iblinter).to receive(:iblinter_installed?).and_return(true)
allow(Dir).to receive(:pwd).and_return("/home/projects")
allow(File).to receive(:exist?).and_return(true)
@iblinter.lint("/home/projects")
errors = [
- Violation.new("Error message", false, "bar/File.xib", nil),
+ Violation.new("Error message", false, "bar/File.xib", 0),
Violation.new("Failed due to IBLinter errors", false, nil, nil)
]
warnings = [
- Violation.new("Warning message", false, "foo/File.xib", nil)
+ Violation.new("Warning message", false, "foo/File.xib", 0)
]
expect(@iblinter.violation_report[:errors]).to eq errors
expect(@iblinter.violation_report[:warnings]).to eq warnings
end
end