Sha256: 9e67b23ad4ca32bbb4c4da7a80a8588318d30291366f71aaadaaa952af7a59f9
Contents?: true
Size: 759 Bytes
Versions: 5
Compression:
Stored size: 759 Bytes
Contents
require 'rspec/expectations' require 'active_support' require File.expand_path('../watir', __FILE__) module RoSupoort module RSpec include Watir extend ::RSpec::Matchers::DSL matcher :have_css do |e| match do |a| a.css(e) end end matcher :exist_not_nil do |*es| match do |a| if es.is_a?(Array) es.each do |e| e = ("@" + e.to_s).to_sym a.instance_variable_get(e) end end end end matcher :be_blank do |e| match do |a| a.blank? end end matcher :be_diff do |e| match do |a| a != e end end matcher :be_empty do |e| match do |a| a.empty? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems