Commit b059de2ac7ad6f47a39ca124764c8e3e661e76f9
1 parent
2191efd8
Exists in
master
and in
4 other branches
Fix notes model specs
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/models/note_spec.rb
| ... | ... | @@ -98,7 +98,7 @@ describe Note do |
| 98 | 98 | end |
| 99 | 99 | |
| 100 | 100 | describe "Commit diff line notes" do |
| 101 | - let!(:note) { create(:note_on_commit_line, note: "+1 from me") } | |
| 101 | + let!(:note) { create(:note_on_commit_diff, note: "+1 from me") } | |
| 102 | 102 | let!(:commit) { note.noteable } |
| 103 | 103 | |
| 104 | 104 | it "should save a valid note" do |
| ... | ... | @@ -136,7 +136,7 @@ describe Note do |
| 136 | 136 | end |
| 137 | 137 | |
| 138 | 138 | describe "Merge request diff line notes" do |
| 139 | - let!(:note) { create(:note_on_merge_request_line, note: "+1 from me") } | |
| 139 | + let!(:note) { create(:note_on_merge_request_diff, note: "+1 from me") } | |
| 140 | 140 | |
| 141 | 141 | it "should not be votable" do |
| 142 | 142 | note.should_not be_votable | ... | ... |