mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
Removed superfluous 'tracks' directory at the root of the repository.
Testing commits to github.
This commit is contained in:
parent
6a42901514
commit
4cbf5a34d3
2269 changed files with 0 additions and 0 deletions
33
vendor/plugins/selenium-on-rails/test/selenium_support_test.rb
vendored
Normal file
33
vendor/plugins/selenium-on-rails/test/selenium_support_test.rb
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
require File.dirname(__FILE__) + '/test_helper'
|
||||
|
||||
class SeleniumSupportTest < Test::Unit::TestCase
|
||||
def setup
|
||||
@controller = SeleniumController.new
|
||||
@request = ActionController::TestRequest.new
|
||||
@response = ActionController::TestResponse.new
|
||||
end
|
||||
|
||||
def test_route
|
||||
get :support_file, :filename => 'TestRunner.html' #initialize the controller
|
||||
assert_equal 'http://test.host/selenium/TestRunner.html',
|
||||
@controller.url_for(:controller => 'selenium', :action => 'support_file', :filename => 'TestRunner.html')
|
||||
end
|
||||
|
||||
def test_test_runner_existance
|
||||
get :support_file, :filename => 'TestRunner.html'
|
||||
assert_response :success
|
||||
assert @response.body.include?('Selenium')
|
||||
end
|
||||
|
||||
def test_default_file
|
||||
get :support_file, :filename => ''
|
||||
assert_redirected_to :filename => 'TestRunner.html', :test => 'tests'
|
||||
end
|
||||
|
||||
def test_missing_file
|
||||
get :support_file, :filename => 'missing.html'
|
||||
assert_response 404
|
||||
assert_equal 'Not found', @response.body
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue