debian-mirror-gitlab/spec/lib/constraints/user_url_constrainer_spec.rb

11 lines
285 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
require 'spec_helper'
describe UserUrlConstrainer, lib: true do
let!(:username) { create(:user, username: 'dz') }
describe '#find_resource' do
it { expect(!!subject.find_resource('dz')).to be_truthy }
it { expect(!!subject.find_resource('john')).to be_falsey }
end
end