Commit b059de2a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix notes model specs

parent 2191efd8
...@@ -98,7 +98,7 @@ describe Note do ...@@ -98,7 +98,7 @@ describe Note do
end end
describe "Commit diff line notes" do describe "Commit diff line notes" do
let!(:note) { create(:note_on_commit_line, note: "+1 from me") } let!(:note) { create(:note_on_commit_diff, note: "+1 from me") }
let!(:commit) { note.noteable } let!(:commit) { note.noteable }
it "should save a valid note" do it "should save a valid note" do
...@@ -136,7 +136,7 @@ describe Note do ...@@ -136,7 +136,7 @@ describe Note do
end end
describe "Merge request diff line notes" do describe "Merge request diff line notes" do
let!(:note) { create(:note_on_merge_request_line, note: "+1 from me") } let!(:note) { create(:note_on_merge_request_diff, note: "+1 from me") }
it "should not be votable" do it "should not be votable" do
note.should_not be_votable note.should_not be_votable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment