lib/testcentricity_web/environment.rb in testcentricity_web-2.0.20 vs lib/testcentricity_web/environment.rb in testcentricity_web-2.0.20.1
- old
+ new
@@ -30,10 +30,11 @@
attr_accessor :browser
attr_accessor :os
attr_accessor :device
attr_accessor :device_type
attr_accessor :platform
+
attr_accessor :signed_in
attr_accessor :portal_status
attr_accessor :portal_context
attr_accessor :external_page
@@ -86,13 +87,13 @@
else
@test_environment.downcase.to_sym
end
end
- # @deprecated Please use {#browser=} instead
+ # @deprecated Please use {#Environ.browser =} instead
def self.set_browser(browser)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_browser' is deprecated. Please use 'browser=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_browser' is deprecated. Please use 'Environ.browser =' instead."
@browser = browser.downcase.to_sym
end
def self.browser=(browser)
@browser = browser.downcase.to_sym
@@ -100,13 +101,13 @@
def self.browser
@browser
end
- # @deprecated Please use {#os=} instead
+ # @deprecated Please use {#Environ.os =} instead
def self.set_os(os)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_os' is deprecated. Please use 'os=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_os' is deprecated. Please use 'Environ.os =' instead."
@os = os
end
def self.os=(os)
@os = os
@@ -114,13 +115,13 @@
def self.os
@os
end
- # @deprecated Please use {#device=} instead
+ # @deprecated Please use {#Environ.device =} instead
def self.set_device(device)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_device' is deprecated. Please use 'device=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_device' is deprecated. Please use 'Environ.device =' instead."
@device = device
end
def self.device=(device)
@device = device
@@ -128,13 +129,13 @@
def self.is_device?
@device
end
- # @deprecated Please use {#device_type=} instead
+ # @deprecated Please use {#Environ.device_type =} instead
def self.set_device_type(type)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_device_type' is deprecated. Please use 'device_type=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_device_type' is deprecated. Please use 'Environ.device_type =' instead."
@device_type = type.downcase
end
def self.device_type=(type)
@device_type = type.downcase
@@ -142,13 +143,13 @@
def self.device_type
@device_type
end
- # @deprecated Please use {#platform=} instead
+ # @deprecated Please use {#Environ.platform =} instead
def self.set_platform(platform)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_platform' is deprecated. Please use 'platform=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_platform' is deprecated. Please use 'Environ.platform =' instead."
@platform = platform
end
def self.platform=(platform)
@platform = platform
@@ -168,13 +169,13 @@
def self.is_signed_in?
@signed_in
end
- # @deprecated Please use {#portal_state=} instead
+ # @deprecated Please use {#Environ.portal_state =} instead
def self.set_portal_state(portal_state)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_portal_state' is deprecated. Please use 'portal_state=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_portal_state' is deprecated. Please use 'Environ.portal_state =' instead."
@portal_status = portal_state
end
def self.portal_state=(portal_state)
@portal_status = portal_state
@@ -182,12 +183,12 @@
def self.portal_state
@portal_status
end
- # @deprecated Please use {#portal_context=} instead
+ # @deprecated Please use {#Environ.portal_context =} instead
def self.set_portal_context(portal_context)
- warn "[DEPRECATION] 'TestCentricity::Environ.set_portal_context' is deprecated. Please use 'portal_context=' instead."
+ warn "[DEPRECATION] 'TestCentricity::Environ.set_portal_context' is deprecated. Please use 'Environ.portal_context =' instead."
@portal_context = portal_context
end
def self.portal_context=(portal_context)
@portal_context = portal_context