Skip to content

Commit

Permalink
Remove constant redefined warnings in suite
Browse files Browse the repository at this point in the history
  • Loading branch information
bernerdschaefer committed Sep 18, 2010
1 parent 48b2339 commit 409c4cd
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 36 deletions.
32 changes: 16 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
require 'rubygems'
require 'spec/rake/spectask'
require 'yard'

desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_opts = ['--color']
t.spec_files = FileList['spec/**/*.rb']
end

YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.rdoc']
#t.options = ['--any', '--extra', '--opts'] # optional
end

task :default => :spec
require 'rubygems'
require 'spec/rake/spectask'
require 'yard'

desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_opts = ['--color']
t.spec_files = FileList['spec/**/*_spec.rb']
end

YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'README.rdoc']
#t.options = ['--any', '--extra', '--opts'] # optional
end

task :default => :spec
4 changes: 1 addition & 3 deletions spec/capybara_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require File.expand_path('spec_helper', File.dirname(__FILE__))

require 'capybara'
require 'spec_helper'

describe Capybara do

Expand Down
2 changes: 1 addition & 1 deletion spec/driver/celerity_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

if RUBY_PLATFORM =~ /java/
describe Capybara::Driver::Celerity do
Expand Down
2 changes: 1 addition & 1 deletion spec/driver/culerity_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Driver::Culerity do
before(:all) do
Expand Down
4 changes: 1 addition & 3 deletions spec/driver/rack_test_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# encoding: utf-8
require File.expand_path('../spec_helper', File.dirname(__FILE__))


require 'spec_helper'
require 'stringio'

def capture(*streams)
Expand Down
2 changes: 1 addition & 1 deletion spec/driver/remote_culerity_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Driver::Culerity do
before(:all) do
Expand Down
2 changes: 1 addition & 1 deletion spec/driver/remote_selenium_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Driver::Selenium do
before(:all) do
Expand Down
2 changes: 1 addition & 1 deletion spec/driver/selenium_driver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Driver::Selenium do
before do
Expand Down
2 changes: 1 addition & 1 deletion spec/dsl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('spec_helper', File.dirname(__FILE__))
require 'spec_helper'

require 'capybara/dsl'

Expand Down
2 changes: 1 addition & 1 deletion spec/save_and_open_page_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('spec_helper', File.dirname(__FILE__))
require 'spec_helper'

require 'capybara/util/save_and_open_page'
require 'launchy'
Expand Down
2 changes: 1 addition & 1 deletion spec/server_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Server do

Expand Down
2 changes: 1 addition & 1 deletion spec/session/celerity_session_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

if RUBY_PLATFORM =~ /java/
describe Capybara::Driver::Celerity do
Expand Down
2 changes: 1 addition & 1 deletion spec/session/culerity_session_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Session do
context 'with culerity driver' do
Expand Down
2 changes: 1 addition & 1 deletion spec/session/rack_test_session_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Session do
context 'with rack test driver' do
Expand Down
2 changes: 1 addition & 1 deletion spec/session/selenium_session_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../spec_helper', File.dirname(__FILE__))
require 'spec_helper'

describe Capybara::Session do
context 'with selenium driver' do
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
$:.unshift(File.dirname(__FILE__))

require 'rubygems'
require "bundler/setup"
Expand Down
2 changes: 1 addition & 1 deletion spec/timeout_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('spec_helper', File.dirname(__FILE__))
require 'spec_helper'

require 'capybara'
require 'capybara/util/timeout'
Expand Down

0 comments on commit 409c4cd

Please sign in to comment.