Skip to content

Commit 738fadf

Browse files
committed
Merge pull request #1042 from titusfortner/rb_relative_paths
rb - update file loading to allow tests to be run from relative directories
2 parents aae5232 + 378ea5d commit 738fadf

33 files changed

+36
-43
lines changed

rb/spec/integration/selenium/webdriver/app_cache_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222

2323
module Selenium::WebDriver::DriverExtensions

rb/spec/integration/selenium/webdriver/driver_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
describe "Driver" do
2323
it "should get the page title" do

rb/spec/integration/selenium/webdriver/element_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
describe "Element" do
2323

rb/spec/integration/selenium/webdriver/error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
describe Selenium::WebDriver::Error do
2323

rb/spec/integration/selenium/webdriver/keyboard_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
module Selenium
2323
module WebDriver

rb/spec/integration/selenium/webdriver/location_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
module Selenium::WebDriver::DriverExtensions
2323
describe HasLocation do

rb/spec/integration/selenium/webdriver/mouse_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
module Selenium
2323
module WebDriver

rb/spec/integration/selenium/webdriver/navigation_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
describe "Navigation" do
2323
let(:wait) { Selenium::WebDriver::Wait.new :timeout => 10 }

rb/spec/integration/selenium/webdriver/network_connection_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
module Selenium::WebDriver::DriverExtensions
2323
describe HasNetworkConnection do

rb/spec/integration/selenium/webdriver/options_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20-
require File.expand_path("../spec_helper", __FILE__)
20+
require_relative 'spec_helper'
2121

2222
module Selenium
2323
module WebDriver

0 commit comments

Comments
 (0)