spec/page-object/elements/button_spec.rb in page-object-0.0.2 vs spec/page-object/elements/button_spec.rb in page-object-0.0.3
- old
+ new
@@ -18,6 +18,17 @@
key.should == t
end
end
end
+ describe "interface" do
+ let(:button_element) { double('button_element') }
+
+ context "for selenium" do
+ it "should return error when asked for its' text" do
+ button = PageObject::Elements::Button.new(button_element, :platform => :selenium)
+ lambda {button.text}.should raise_error
+ end
+ end
+ end
+
end
\ No newline at end of file