Sha256: 4077b9a3fb1381943e93d88b2b6dc173fee0e37165124187c8c611c2e4e341cd
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
require 'spec_helper' describe Symbiont::Enclosers do let(:watir_browser) { mock_browser_for_watir } let(:watir_definition) { DefinitionTest.new(watir_browser) } describe "browser-level actions" do context "a definition using watir-webdriver" do it "should visit a page" do watir_browser.should_receive(:goto).with("http://localhost:4567") watir_definition.visit("http://localhost:4567") end end end describe "page-level actions" do context "a definition using watir-webdriver" do it "should return all the text on a page" do watir_browser.should_receive(:text).and_return("page text") watir_definition.text.should == "page text" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
symbiont-0.1.2 | spec/symbiont/evaluators_spec.rb |
symbiont-0.1.1 | spec/symbiont/evaluators_spec.rb |