mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
Update selenium on rails using 'official' git repo
git://github.com/paytonrules/selenium-on-rails.git
This commit is contained in:
parent
198f3240b8
commit
9b504b3e47
159 changed files with 16409 additions and 11794 deletions
20
vendor/plugins/selenium-on-rails/test/switch_environment_controller_test.rb
vendored
Normal file
20
vendor/plugins/selenium-on-rails/test/switch_environment_controller_test.rb
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue