Sha256: 647e74b9224e94f6e8161c3a73fca197985898fe29c1780df6bc661ac5ad516e

Contents?: true

Size: 624 Bytes

Versions: 2

Compression:

Stored size: 624 Bytes

Contents

require "mock/page"
require File.dirname(__FILE__) + "/spec_helper"

describe Cello::PageObjects::SelectHelper do
  describe "define_extras_for_select" do
    before(:all) do
      @page = Mock::Site::MockPage.new "foo"
    end
    it "Select an option method exists" do
      (@page.methods.map.include? :select_select).should be_true
    end
    it "go to default or empty option method exists" do
      pending
      (@page.methods.map.include? :select_clear).should be_true
    end
    it "return the selected option method exists" do
      (@page.methods.map.include? :select_selected).should be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cello-0.0.23 spec/select_spec.rb
cello-0.0.21 spec/select_spec.rb