Sha256: 3fb807ea574752661c429753c69c1edfb6bf045571182bb619f640955fcab5bd
Contents?: true
Size: 565 Bytes
Versions: 18
Compression:
Stored size: 565 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe ProxyTester do context '.load_user_database' do it 'loads the database' do user_file = create_file 'users.csv', <<-EOS.strip_heredoc "name","password" "user1","password1" EOS config_file = create_file 'config.yaml', <<-EOS.strip_heredoc user_file: #{user_file} EOS ProxyTester.config = ProxyTester::Config.new(config_file) ProxyTester.load_user_database expect { User.find_by!(name: 'user1') }.not_to raise_error end end end
Version data entries
18 entries across 18 versions & 1 rubygems