features/pages/input_fields.rb in cello-0.0.17 vs features/pages/input_fields.rb in cello-0.0.19
- old
+ new
@@ -1,6 +1,6 @@
-require File.join(File.dirname(__FILE__), '../../lib/cello')
+require "cello"
module StaticPages
module Site
class InputPage < Cello::Structure::Page
element :text_field, :text_field, :id => 'text1'
@@ -10,15 +10,10 @@
element :textarea, :textarea, :id => 'area1'
element :radios, :radios, :name => 'items'
element :select, :select, :id => 'select1'
element :link, :link, :id => 'link1'
- def get_url
- 'file://' + File.dirname(__FILE__) + '/../site/inputs.html'
- end
+ url('file://' + File.dirname(__FILE__) + '/../site/inputs.html')
- def initialize(teste)
- super(teste)
- end
end
end
end