blob: 4b26692672f0f63d43164aa0b8aa664448d2cb21 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|