spec/checkbox_spec.rb in cello-0.0.17 vs spec/checkbox_spec.rb in cello-0.0.19

- old
+ new

@@ -1,14 +1,22 @@ -require File.join(File.dirname(__FILE__), '../lib/cello/structure/html_elements/checkbox_helper.rb') +require 'mock/page' +require "pry" describe Cello::Structure::CheckboxHelper do describe "define_extras_for_checkbox" do - it "Verify if there it is checked" do + before(:all) do + @page = Mock::Site::MockPage.new "foo" end + it "Verify if is checked method exists" do + (@page.methods.map.include? :checkbox_is_checked?).should be_true + end it "Verify if there it is unchecked" do + (@page.methods.map.include? :checkbox_is_unchecked?).should be_true end it "Check a Checkbox" do + (@page.methods.map.include? :checkbox_check).should be_true end it "Clear a Checkbox" do + (@page.methods.map.include? :checkbox_uncheck).should be_true end end end