Sha256: ce5c2cbc49c676f4b7aa022a68b88ef285507a383e511d3ff6fd975b3bd71b16
Contents?: true
Size: 807 Bytes
Versions: 18
Compression:
Stored size: 807 Bytes
Contents
# encoding: utf-8 require_relative 'capybara' module InternetBrowsingBnk module SpecHelper module Features def search_for(options = {}) url = options.fetch(:url) content = options.fetch(:content) client_ip = options.fetch(:client_ip, nil) time = options.fetch(:time, nil) pac_file = options.fetch(:pac_file, '/file.pac') visit(pac_file) within('#search') do fill_in 'url', :with => url fill_in('client_ip', :with => client_ip) if client_ip fill_in('time', :with => time) if time end click_on('Search') expect(page).to have_content(content) end end end end # encoding: utf-8 RSpec.configure do |c| c.include InternetBrowsingBnk::SpecHelper::Features end
Version data entries
18 entries across 18 versions & 1 rubygems