Update selenium on rails using 'official' git repo

git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
Reinier Balt 2008-12-02 10:05:41 +01:00
parent 198f3240b8
commit 9b504b3e47
159 changed files with 16409 additions and 11794 deletions

View file

@ -0,0 +1,20 @@
require File.dirname(__FILE__) + '/test_helper'
require 'mocha'
require 'controllers/switch_environment_controller'
class SwitchEnvironmentControllerTest < Test::Unit::TestCase
def setup
@config = mock()
setup_controller_test(SwitchEnvironmentController)
end
def test_index
SeleniumOnRailsConfig.expects(:new).returns(@config)
@config.expects(:get).with(:environments).returns("hello dolly")
get :index
assert @response.body.include?('hello dolly')
end
end