tracks/vendor/plugins/selenium-on-rails/test/switch_environment_controller_test.rb
Reinier Balt 9b504b3e47 Update selenium on rails using 'official' git repo
git://github.com/paytonrules/selenium-on-rails.git
2008-12-02 10:05:41 +01:00

20 lines
No EOL
503 B
Ruby

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