diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-07-25 16:48:17 -0400 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2017-08-07 22:34:34 -0400 |
commit | c21ae07e331ca14605410555d0582f14cb661bb6 (patch) | |
tree | 1eb80eec41f5d28a36976f411c4b1eb5ba27723b /spec/models/commit_spec.rb | |
parent | 942bd5b4112d90c66d637ef350b881574de45065 (diff) | |
download | gitlab-ce-c21ae07e331ca14605410555d0582f14cb661bb6.tar.gz |
Refactor Gitlab::Git::Commit to include a repository
Diffstat (limited to 'spec/models/commit_spec.rb')
-rw-r--r-- | spec/models/commit_spec.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index 08693b5da33..1d38f8e5a6d 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -33,7 +33,6 @@ describe Commit do describe '#to_reference' do let(:project) { create(:project, :repository, path: 'sample-project') } - let(:commit) { project.commit } it 'returns a String reference to the object' do expect(commit.to_reference).to eq commit.id @@ -47,7 +46,6 @@ describe Commit do describe '#reference_link_text' do let(:project) { create(:project, :repository, path: 'sample-project') } - let(:commit) { project.commit } it 'returns a String reference to the object' do expect(commit.reference_link_text).to eq commit.short_id |