42c6555bab
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
10 lines
285 B
Ruby
10 lines
285 B
Ruby
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
|