Version 1 (modified by yugui, 6 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) story "A reader visits our site" do

senario "The reader", "views our toppage" do

she.open "/" 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