lib/rspectacular/selectors.rb in rspectacular-0.21.2 vs lib/rspectacular/selectors.rb in rspectacular-0.21.3
- old
+ new
@@ -1,5 +1,7 @@
+require File.expand_path('../selectors/defaults', __FILE__)
+
def fsf(*args)
selector = sf(*args)
selector_format = selector.starts_with?('.//') ? :xpath : :css
page.find(selector_format, selector)
@@ -20,7 +22,5 @@
else
selector
end
end
end
-
-require File.expand_path('../selectors/defaults', __FILE__)