diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-25 21:10:09 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-25 21:10:09 +0200 |
commit | b4cc04d7e17eeefe6d89bbb72661a43d7d9e3e2e (patch) | |
tree | dbfb3d07b1462e7f09a7717596f8748519af8474 /spec/models/note_spec.rb | |
parent | 73efb837913ee0892c3ab92700a61783397ca83a (diff) | |
download | gitlab-ce-b4cc04d7e17eeefe6d89bbb72661a43d7d9e3e2e.tar.gz |
Commit diff fixes, per-line comments fixed
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 75503fd9a75..44a0ee1940a 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -42,27 +42,13 @@ describe Note do :project => project, :noteable_id => commit.id, :noteable_type => "Commit", - :line_code => "OLD_1_23" + :line_code => "0_16_1" end it "should save a valid note" do @note.noteable_id.should == commit.id @note.target.id.should == commit.id end - - it { @note.line_type_id.should == "OLD" } - it { @note.line_file_id.should == 1 } - it { @note.line_number.should == 23 } - - it { @note.for_line?(1, 23, 34).should be_true } - it { @note.for_line?(1, 23, nil).should be_true } - it { @note.for_line?(1, 23, 0).should be_true } - it { @note.for_line?(1, 23, 23).should be_true } - - it { @note.for_line?(1, nil, 34).should be_false } - it { @note.for_line?(1, 24, nil).should be_false } - it { @note.for_line?(1, 24, 0).should be_false } - it { @note.for_line?(1, 24, 23).should be_false } end describe :authorization do |