Sha256: aa78b0ca89d89965157dbcb44032a2d3b6e9bc72c5f38cda92c800baa244a937

Contents?: true

Size: 878 Bytes

Versions: 2

Compression:

Stored size: 878 Bytes

Contents

require 'spec_helper'

describe Symbiont do
  it "should return version information" do
    Symbiont.version.should == "Symbiont v#{Symbiont::VERSION}"
  end

  it "should set the page level wait default to 15" do
    Symbiont.instance_variable_set("@page_wait", nil)
    Symbiont.page_level_wait.should == 15
  end

  it "should be able to set a page level wait value" do
    Symbiont.page_level_wait = 30
    value = Symbiont.instance_variable_get("@page_wait")
    value.should == 30
  end

  it "should set the element level wait default to 5" do
    Symbiont.instance_variable_set("@element_wait", nil)
    Symbiont.element_level_wait.should == 5
  end

  it "should be able to set an element level wait value" do
    Symbiont.element_level_wait = 10
    value = Symbiont.instance_variable_get("@element_wait")
    value.should == 10
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 spec/symbiont/symbiont_spec.rb
symbiont-0.2.0 spec/symbiont/symbiont_spec.rb