Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/tree_spec.rb')
-rw-r--r--spec/models/tree_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/models/tree_spec.rb b/spec/models/tree_spec.rb
index 1522d836f76..b7a8276ec55 100644
--- a/spec/models/tree_spec.rb
+++ b/spec/models/tree_spec.rb
@@ -6,7 +6,7 @@ RSpec.describe Tree do
let(:repository) { create(:project, :repository).repository }
let(:sha) { repository.root_ref }
- subject { described_class.new(repository, '54fcc214') }
+ subject(:tree) { described_class.new(repository, '54fcc214') }
describe '#readme' do
before do
@@ -66,4 +66,10 @@ RSpec.describe Tree do
expect(subject.readme.name).to eq 'README.md'
end
end
+
+ describe '#cursor' do
+ subject { tree.cursor }
+
+ it { is_expected.to be_an_instance_of(Gitaly::PaginationCursor) }
+ end
end