lib/page-object/elements/check_box.rb in page-object-0.4.4 vs lib/page-object/elements/check_box.rb in page-object-0.5.0
- old
+ new
@@ -1,6 +1,5 @@
-require 'mixology'
module PageObject
module Elements
class CheckBox < Element
@@ -13,16 +12,16 @@
def include_platform_for platform
super
if platform[:platform] == :watir_webdriver
require 'page-object/platforms/watir_webdriver/check_box'
- self.mixin PageObject::Platforms::WatirWebDriver::CheckBox
+ self.class.send :include, PageObject::Platforms::WatirWebDriver::CheckBox
elsif platform[:platform] == :selenium_webdriver
require 'page-object/platforms/selenium_webdriver/check_box'
- self.mixin PageObject::Platforms::SeleniumWebDriver::CheckBox
+ self.class.send :include, PageObject::Platforms::SeleniumWebDriver::CheckBox
else
raise ArgumentError, "expect platform to be :watir_webdriver or :selenium_webdriver"
end
end
end
end
-end
\ No newline at end of file
+end