Skip to content

Commit a7dd13f

Browse files
committed
Explicitly set expectation on a spec
1 parent a42584d commit a7dd13f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/lib/danger/scm_source/git_repo_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
it "looks up the top level git folder when requested" do
5151
with_git_repo do |dir|
5252
@dm = testing_dangerfile
53-
@dm.env.scm.diff_for_folder(dir + "/subdir", lookup_top_level: true)
53+
expect do
54+
@dm.env.scm.diff_for_folder(dir + "/subdir", lookup_top_level: true)
55+
end.not_to raise_error
5456
end
5557
end
5658
end

0 commit comments

Comments
 (0)