Skip to content

Commit

Permalink
ops...I forgot one test...
Browse files Browse the repository at this point in the history
  • Loading branch information
tapajos committed Feb 21, 2009
1 parent e7cc321 commit 25e0918
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/paths_test.rb
Expand Up @@ -57,5 +57,14 @@ def test_skip_file_when_file_does_not_have_any_reason_to_skip
def test_selenium_path
assert_equal File.expand_path("#{RAILS_ROOT}/../selenium-core") + "/", selenium_path
end

def test_selenium_path_when_selenium_core_installation_is_not_found
File.expects(:exist?).with("/Users/tapajos/workspace/selenium-on-rails/selenium-core/core/TestRunner.html").returns(false)
File.expects(:exist?).with("/Users/tapajos/workspace/selenium-on-rails/selenium-core/selenium/TestRunner.html").returns(false)
File.expects(:exist?).with("/Users/tapajos/workspace/selenium-on-rails/selenium-core/javascript/TestRunner.html").returns(false)
File.expects(:exist?).with("/Users/tapajos/workspace/selenium-on-rails/selenium-core/TestRunner.html").returns(false)
@@selenium_path = nil
assert_raise(RuntimeError) { selenium_path }
end

end

0 comments on commit 25e0918

Please sign in to comment.