summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorMark Chao <mchao@gitlab.com>2019-03-06 15:51:22 +0800
committerMark Chao <mchao@gitlab.com>2019-03-06 15:51:22 +0800
commit2609c2a73e8f8efc4fdd5e13c5378ffae7e4f9ef (patch)
tree69fe0ede8ef75c88027acb7b855ea3e90a015627 /spec/controllers
parent90527b9f842d53595fb14a97a8f8ad19d9dc505a (diff)
downloadgitlab-ce-2609c2a73e8f8efc4fdd5e13c5378ffae7e4f9ef.tar.gz
Fix spec description and outdated comments
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/blob_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/blob_controller_spec.rb b/spec/controllers/projects/blob_controller_spec.rb
index 250c4aad87f..27093141ed9 100644
--- a/spec/controllers/projects/blob_controller_spec.rb
+++ b/spec/controllers/projects/blob_controller_spec.rb
@@ -173,7 +173,7 @@ describe Projects::BlobController do
expect(match_line['type']).to be_nil
end
- it 'adds bottom match line when "t"o is less than blob size' do
+ it 'adds bottom match line when "to" is less than blob size' do
do_get(since: 1, to: 5, offset: 10, from_merge_request: true, bottom: true)
match_line = JSON.parse(response.body).last
@@ -183,7 +183,7 @@ describe Projects::BlobController do
expect(match_line['meta_data']).to have_key('new_pos')
end
- it 'does not add bottom match line when "to" is less than blob size' do
+ it 'does not add bottom match line when "to" is equal to blob size' do
commit_id = project.repository.commit('master').id
blob = project.repository.blob_at(commit_id, 'CHANGELOG')
do_get(since: 1, to: blob.lines.count, offset: 10, from_merge_request: true, bottom: true)