2 $LOAD_PATH.unshift(File.expand_path(File.join(RAILS_ROOT, '..', 'spec_ui', 'lib')))
3 require 'spec/ui/watir_helper'
5 describe "Person Webpage" do
6 # TODO: Get this to work with Fixtures
9 # This will be Watir::IE or Watir::Safari depending on your OS.
10 @browser = Watir::Browser.new
13 it "should display create field" do
14 @browser.goto("http://localhost:3000/people/create")
15 @browser.text_field(:id, "person_name").set("Some name")
16 @browser.button(:name, "commit").click
17 @browser.should be_contain_text("Some names")