lib/page-object/accessors.rb in page-object-0.7.5 vs lib/page-object/accessors.rb in page-object-0.7.5.1

- old
+ new

@@ -36,11 +36,11 @@ # @param [String] the url for the page. # @param [Symbol] a method name to call to get the url # def page_url(url) define_method("goto") do - url = url.kind_of?(Symbol) ? self.send(url) : url - erb = ERB.new(%Q{#{url}}) + lookup = url.kind_of?(Symbol) ? self.send(url) : url + erb = ERB.new(%Q{#{lookup}}) merged_params = self.class.instance_variable_get("@merged_params") params = merged_params ? merged_params : self.class.params platform.navigate_to erb.result(binding) end end