summaryrefslogtreecommitdiff
path: root/spec/lib/constraints/group_url_constrainer_spec.rb
blob: f0b75a664f27d25cbff2336552b77324077d0adc (plain)
1
2
3
4
5
6
7
8
9
10
require 'spec_helper'

describe GroupUrlConstrainer, lib: true do
  let!(:username) { create(:group, path: 'gitlab-org') }

  describe '#find_resource' do
    it { expect(!!subject.find_resource('gitlab-org')).to be_truthy }
    it { expect(!!subject.find_resource('gitlab-com')).to be_falsey }
  end
end