Upgraded Rails and RSpec
[monkeycharger.git] / vendor / plugins / rspec / example_rails_app / spec / watir / person_spec.rb
blob01d2cb806ed93840926c8191b63096dbba991635
1 =begin
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
7   
8   before(:all) do
9     # This will be Watir::IE or Watir::Safari depending on your OS.
10     @browser = Watir::Browser.new
11   end
12   
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")
18   end
19 end
20 =end