Sha256: 21edaf144ef1758fdc54c5896cdc2f4332085790a8411b00ad37a233e40d9556

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

require 'mock/page'
require "pry"

describe Cello::Structure::CheckboxHelper do
  describe "define_extras_for_checkbox" 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cello-0.0.19 spec/checkbox_spec.rb