Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/app_cache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'


module Selenium::WebDriver::DriverExtensions
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/driver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Driver" do
it "should get the page title" do
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/element_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Element" do

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/error_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::WebDriver::Error do

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/keyboard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/location_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium::WebDriver::DriverExtensions
describe HasLocation do
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/mouse_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/navigation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Navigation" do
let(:wait) { Selenium::WebDriver::Wait.new :timeout => 10 }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium::WebDriver::DriverExtensions
describe HasNetworkConnection do
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require 'ci/reporter/rspec'

require 'selenium-webdriver'
require 'selenium/webdriver/spec_support'
require_relative 'spec_support'

include Selenium

Expand Down
15 changes: 4 additions & 11 deletions rb/spec/integration/selenium/webdriver/spec_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@

require 'pathname'
require 'selenium/server'
require 'selenium/webdriver/spec_support/test_environment'
require 'selenium/webdriver/spec_support/guards'
require 'selenium/webdriver/spec_support/helpers'

module Selenium
module WebDriver
module SpecSupport
autoload :RackServer, 'selenium/webdriver/spec_support/rack_server'
end
end
end
require_relative 'spec_support/test_environment'
require_relative 'spec_support/guards'
require_relative 'spec_support/helpers'
require_relative 'spec_support/rack_server'
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Driver" do
context "sql database" do
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium::WebDriver::DriverExtensions
describe HasWebStorage do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Selenium::WebDriver::TargetLocator" do
let(:wait) { Selenium::WebDriver::Wait.new }
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/timeout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "Timeouts" do

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/touch_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium::WebDriver::DriverExtensions
describe HasTouchScreen do
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/window_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/integration/selenium/webdriver/zipper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/client/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::Base do

Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/client/extensions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::Extensions do
class ExtensionsClient
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/client/idiomatic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::Idiomatic do
class IdiomaticClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::JavascriptExpressionBuilder do
def builder(*args)
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/client/protocol_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::Protocol do
class ProtocolClient
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/client/selenium_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::Client::SeleniumHelper do
class SeleniumHelperClass
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/action_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe Selenium::WebDriver::ActionBuilder do
let(:bridge) { double("Bridge").as_null_object }
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/error_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/file_reaper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/log_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/proxy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/search_context_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

describe "SearchContext" do
class TestSearchContext
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/socket_poller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down
2 changes: 1 addition & 1 deletion rb/spec/unit/selenium/webdriver/wait_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# specific language governing permissions and limitations
# under the License.

require File.expand_path("../spec_helper", __FILE__)
require_relative 'spec_helper'

module Selenium
module WebDriver
Expand Down