Sha256: 969551223d5fb6dff0595e91c85f48af848b9f20aaba88bd64945608d6435afb

Contents?: true

Size: 466 Bytes

Versions: 13

Compression:

Stored size: 466 Bytes

Contents

module Cello
  module PageObjects
    module CheckboxHelper
      def define_extras_for_checkbox(name)
        define_method "#{name}_check" do
          send(name).set
        end
        define_method "#{name}_uncheck" do
          send(name).clear
        end
        define_method "#{name}_is_checked?" do
          send(name).set?
        end
        define_method "#{name}_is_unchecked?" do
          !(send(name).set?)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cello-0.0.35 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.34 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.33 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.32 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.31 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.30 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.29 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.28 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.27 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.26 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.25 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.23 lib/cello/pageobjects/html_elements/checkbox_helper.rb
cello-0.0.21 lib/cello/pageobjects/html_elements/checkbox_helper.rb