Skip to content

Instantly share code, notes, and snippets.

@avk
Created August 21, 2009 02:03
Show Gist options
  • Save avk/171600 to your computer and use it in GitHub Desktop.
Save avk/171600 to your computer and use it in GitHub Desktop.
require File.dirname(__FILE__) + '/../test_helper'
class InvitedCommenterTest < Test::Unit::TestCase
attr_reader :browser
def setup
@browser = Selenium::Client::Driver.new \
:host => "localhost",
:port => 4444,
:browser => "*firefox",
:url => "http://dusk/",
:timeout_in_second => 60
browser.start_new_browser_session
end
def teardown
browser.close_current_browser_session
end
def test_commenter_can_log_in
browser.open "/index.html#url_token=bde1ac52c249d8cc52690dfd5be56234"
assert browser.element?("css=#outspokes")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment