Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.372 kb
require 'rails_helper'
describe 'Boolean' do
before do
@one = create :user, admin: true
@two = create :user, admin: false
end
it 'Returns the matching result for a boolean columm method' do
expect(User.admin).to eq [@one]
end
it 'Returns the matching result for a not_ boolean columm method' do
expect(User.not_admin).to eq [@two]
end
end
Jump to Line
Something went wrong with that request. Please try again.