diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-19 12:03:27 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-19 12:03:27 +0100 |
commit | 5c69043e7534fdb04d62b7e1f7efe72de9b33b5e (patch) | |
tree | 5af47775734c789c0849d86f2ceb0f2b59c2438f | |
parent | 85e50301b4470c862603b7f2c503c336ea7c2210 (diff) | |
download | gitlab-ce-5c69043e7534fdb04d62b7e1f7efe72de9b33b5e.tar.gz |
fixes commit_file test on repository_spec
-rw-r--r-- | spec/models/repository_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/repository_spec.rb b/spec/models/repository_spec.rb index d55fd36548a..110df6bbd22 100644 --- a/spec/models/repository_spec.rb +++ b/spec/models/repository_spec.rb @@ -130,17 +130,17 @@ describe Repository, models: true do end end - describe :create_file do + describe :commit_file do it 'commits change to a file successfully' do expect do - repository.commit_file(user, 'LICENSE', 'Copyright!', - 'Updates filename', + repository.commit_file(user, 'CHANGELOG', 'Changelog!', + 'Updates file content', 'master', true) end.to change { repository.commits('master').count }.by(1) - blob = Blob.decorate(repository.blob_at(repository.commits('master').first.id, 'LICENSE')) + blob = repository.blob_at('master', 'CHANGELOG') - expect(blob.data).to eq('Copyright!') + expect(blob.data).to eq('Changelog!') end end |