Sha256: 0505ef643d77cbcc98fc3d060979314f2c154841c77cb2a28ebc57784d06b330
Contents?: true
Size: 503 Bytes
Versions: 22
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true # generado con pg_rails require 'rails_helper' RSpec.describe User do let(:user) { create(:user, :owner) } it 'se persiste' do expect(user).to be_persisted expect(UserAccount.unscoped.count).to eq 1 expect(UserAccount.first.profiles).to include(:account__owner) end describe 'search ransacker' do it 'searchs' do results = described_class.ransack(search_cont: user.nombre).result.to_a expect(results).to eq [user] end end end
Version data entries
22 entries across 22 versions & 1 rubygems