| Version 8 (modified by drry, 5 years ago) |
|---|
SeleniumRC Spec
Rails plugin to integrate SeleniumRC with RSpec on Rails.
Synopsis
spec/selenium/toppage_spec.rb:
require File.join(File.dirname(__FILE__), '..', 'spec_helper')
story "A reader visits our site" do
senario "The reader", "views our toppage" do
# You can use "he", "she" or "ve"
she.opens "/"
she.gets_title; it.should == "Hello, World!"
end
end
Installation
$ script/plugin install [-x] http://svn.coderepos.org/share/lang/ruby/selenium_rc_spec
How to run
$ java -jar vendor/plugin/selenium_rc_spec/libexec/selenium-server.jar & $ script/spec spec/selenium/toppage_spec.rb
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)