require File.dirname(__FILE__) + '/../../spec_helper' # require 'selenium_helper' require File.dirname(__FILE__) + '/../../../lib/selenium' include SeleniumHelper describe "A selenium based view test" do before :all do @selenium = Selenium::SeleniumDriver.new("localhost", 4444, "*firefox", "http://localhost:3000", 10000) @selenium.start end it "should be able to render some text from my rails app" do # start doing what we were supposed to be doing open "http://localhost:3000/insecure/" text = get_title text.should == "Test" # body_text = get_text(id="test") body_text = get_text(id="document.body") body_text.should == "Very simple test." end after :all do @selenium.stop end end