spec/spec_helper.rb in shoes-swt-4.0.0.pre2 vs spec/spec_helper.rb in shoes-swt-4.0.0.pre3

- old
+ new

@@ -1,9 +1,13 @@ SHOESSPEC_ROOT = File.expand_path('..', __FILE__) -$LOAD_PATH << File.join('../lib', SHOESSPEC_ROOT) +$LOAD_PATH << File.join(SHOESSPEC_ROOT) +$LOAD_PATH << File.join(SHOESSPEC_ROOT, '../lib') +$LOAD_PATH << File.join(SHOESSPEC_ROOT, '../../shoes-core/spec') +$LOAD_PATH << File.join(SHOESSPEC_ROOT, '../../shoes-core/lib') -require 'code_coverage' +require 'shoes/swt/spec_helper' +require_relative '../../spec/code_coverage' require 'rspec' require 'rspec/its' require 'pry' require 'shoes' require 'shoes/ui/cli' @@ -12,7 +16,7 @@ require 'shoes/helpers/inspect_helpers' require 'webmock/rspec' WebMock.disable_net_connect!(:allow => "codeclimate.com") -shared_examples = File.expand_path('../shoes/shared_examples/**/*.rb', __FILE__) +shared_examples = File.join(SHOESSPEC_ROOT, '../../shoes-core/spec/shoes/shared_examples/**/*.rb') Dir[shared_examples].each { |f| require f }