Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use `--require spec_helper` rather than requiring at the top of each …

…file.
  • Loading branch information...
commit a8c56add9aed96d1078ec100832494a6f8e83600 1 parent 6969db3
@myronmarston myronmarston authored
Showing with 1 addition and 77 deletions.
  1. +1 −1  .rspec
  2. +0 −1  spec/rspec/expectations/diff_presenter_spec.rb
  3. +0 −2  spec/rspec/expectations/encoded_string_spec.rb
  4. +0 −2  spec/rspec/expectations/expectation_target_spec.rb
  5. +0 −2  spec/rspec/expectations/extensions/kernel_spec.rb
  6. +0 −2  spec/rspec/expectations/fail_with_spec.rb
  7. +0 −2  spec/rspec/expectations/handler_spec.rb
  8. +0 −2  spec/rspec/expectations/minitest_integration_spec.rb
  9. +0 −2  spec/rspec/expectations/syntax_spec.rb
  10. +0 −2  spec/rspec/expectations_spec.rb
  11. +0 −2  spec/rspec/matchers/aliased_matcher_spec.rb
  12. +0 −2  spec/rspec/matchers/aliases_spec.rb
  13. +0 −2  spec/rspec/matchers/built_in/base_matcher_spec.rb
  14. +0 −2  spec/rspec/matchers/built_in/be_between_spec.rb
  15. +0 −2  spec/rspec/matchers/built_in/be_instance_of_spec.rb
  16. +0 −2  spec/rspec/matchers/built_in/be_kind_of_spec.rb
  17. +0 −2  spec/rspec/matchers/built_in/be_spec.rb
  18. +0 −2  spec/rspec/matchers/built_in/be_within_spec.rb
  19. +0 −4 spec/rspec/matchers/built_in/change_spec.rb
  20. +0 −2  spec/rspec/matchers/built_in/compound_spec.rb
  21. +0 −1  spec/rspec/matchers/built_in/contain_exactly_spec.rb
  22. +0 −2  spec/rspec/matchers/built_in/cover_spec.rb
  23. +0 −1  spec/rspec/matchers/built_in/eq_spec.rb
  24. +0 −2  spec/rspec/matchers/built_in/eql_spec.rb
  25. +0 −1  spec/rspec/matchers/built_in/equal_spec.rb
  26. +0 −1  spec/rspec/matchers/built_in/exist_spec.rb
  27. +0 −2  spec/rspec/matchers/built_in/has_spec.rb
  28. +0 −1  spec/rspec/matchers/built_in/include_spec.rb
  29. +0 −2  spec/rspec/matchers/built_in/match_spec.rb
  30. +0 −2  spec/rspec/matchers/built_in/operators_spec.rb
  31. +0 −2  spec/rspec/matchers/built_in/output_spec.rb
  32. +0 −2  spec/rspec/matchers/built_in/raise_error_spec.rb
  33. +0 −2  spec/rspec/matchers/built_in/respond_to_spec.rb
  34. +0 −2  spec/rspec/matchers/built_in/satisfy_spec.rb
  35. +0 −2  spec/rspec/matchers/built_in/start_and_end_with_spec.rb
  36. +0 −2  spec/rspec/matchers/built_in/throw_symbol_spec.rb
  37. +0 −2  spec/rspec/matchers/built_in/yield_spec.rb
  38. +0 −1  spec/rspec/matchers/configuration_spec.rb
  39. +0 −2  spec/rspec/matchers/description_generation_spec.rb
  40. +0 −1  spec/rspec/matchers/dsl_spec.rb
  41. +0 −2  spec/rspec/matchers/legacy_spec.rb
  42. +0 −2  spec/rspec/matchers_spec.rb
View
2  .rspec
@@ -1,2 +1,2 @@
---backtrace
--warnings
+--require spec_helper
View
1  spec/rspec/expectations/diff_presenter_spec.rb
@@ -1,5 +1,4 @@
# encoding: utf-8
-require 'spec_helper'
require 'ostruct'
module RSpec
View
2  spec/rspec/expectations/encoded_string_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Expectations
describe EncodedString do
let(:target_encoding) { 'UTF-8' }
View
2  spec/rspec/expectations/expectation_target_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Expectations
# so our examples below can set expectations about the target
View
2  spec/rspec/expectations/extensions/kernel_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe Object, "#should" do
before(:each) do
@target = "target"
View
2  spec/rspec/expectations/fail_with_spec.rb
@@ -1,6 +1,4 @@
# encoding: utf-8
-require 'spec_helper'
-
describe RSpec::Expectations, "#fail_with with diff of arrays" do
before { allow(RSpec::Matchers.configuration).to receive_messages(:color? => false) }
View
2  spec/rspec/expectations/handler_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module ExampleExpectations
class ArbitraryMatcher
View
2  spec/rspec/expectations/minitest_integration_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
describe Matchers do
View
2  spec/rspec/expectations/syntax_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Expectations
describe Syntax do
View
2  spec/rspec/expectations_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
describe Expectations do
it 'does not allow expectation failures to be caught by a bare rescue' do
View
2  spec/rspec/matchers/aliased_matcher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
describe AliasedMatcher do
View
2  spec/rspec/matchers/aliases_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
describe Matchers, "aliases", :order => :defined do
matcher :be_aliased_to do |old_matcher|
View
2  spec/rspec/matchers/built_in/base_matcher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Matchers::BuiltIn
describe BaseMatcher do
describe "#match_unless_raises" do
View
2  spec/rspec/matchers/built_in/be_between_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Matchers::BuiltIn
describe BeBetween do
class SizeMatters
View
2  spec/rspec/matchers/built_in/be_instance_of_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
[:be_an_instance_of, :be_instance_of].each do |method|
View
2  spec/rspec/matchers/built_in/be_kind_of_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
[:be_a_kind_of, :be_kind_of].each do |method|
View
2  spec/rspec/matchers/built_in/be_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect(...).to be_predicate" do
it "passes when actual returns true for :predicate?" do
actual = double("actual", :happy? => true)
View
2  spec/rspec/matchers/built_in/be_within_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
describe "expect(actual).to be_within(delta).of(expected)" do
View
4 spec/rspec/matchers/built_in/change_spec.rb
@@ -1,7 +1,3 @@
-#Based on patch from Wilson Bilkovich
-
-require 'spec_helper'
-
class SomethingExpected
attr_accessor :some_value
end
View
2  spec/rspec/matchers/built_in/compound_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Matchers::BuiltIn
describe Compound do
context "when used as a composable matcher" do
View
1  spec/rspec/matchers/built_in/contain_exactly_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'timeout'
class UnsortableObject
View
2  spec/rspec/matchers/built_in/cover_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
if (1..2).respond_to?(:cover?)
describe "expect(...).to cover(expected)" do
it_behaves_like "an RSpec matcher", :valid_value => (1..10), :invalid_value => (20..30) do
View
1  spec/rspec/matchers/built_in/eq_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'date'
require 'complex'
View
2  spec/rspec/matchers/built_in/eql_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
describe "eql" do
View
1  spec/rspec/matchers/built_in/equal_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
module RSpec
module Matchers
describe "equal" do
View
1  spec/rspec/matchers/built_in/exist_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'ostruct'
describe "exist matcher" do
View
2  spec/rspec/matchers/built_in/has_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect(...).to have_sym(*args)" do
it_behaves_like "an RSpec matcher", :valid_value => { :a => 1 },
:invalid_value => {} do
View
1  spec/rspec/matchers/built_in/include_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'uri'
describe "#include matcher" do
View
2  spec/rspec/matchers/built_in/match_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect(...).to match(expected)" do
it_behaves_like "an RSpec matcher", :valid_value => 'ab', :invalid_value => 'bc' do
let(:matcher) { match(/a/) }
View
2  spec/rspec/matchers/built_in/operators_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
class MethodOverrideObject
def method
:foo
View
2  spec/rspec/matchers/built_in/output_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
shared_examples_for "output_to_stream" do |stream_name|
matcher_method = :"to_#{stream_name}"
View
2  spec/rspec/matchers/built_in/raise_error_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect { ... }.to raise_error" do
it_behaves_like("an RSpec matcher", :valid_value => lambda { raise "boom" },
:invalid_value => lambda { }) do
View
2  spec/rspec/matchers/built_in/respond_to_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect(...).to respond_to(:sym)" do
it_behaves_like "an RSpec matcher", :valid_value => "s", :invalid_value => 5 do
let(:matcher) { respond_to(:upcase) }
View
2  spec/rspec/matchers/built_in/satisfy_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expect(...).to satisfy { block }" do
it_behaves_like "an RSpec matcher", :valid_value => true, :invalid_value => false do
let(:matcher) { satisfy { |v| v } }
View
2  spec/rspec/matchers/built_in/start_and_end_with_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
describe "expect(...).to start_with" do
it_behaves_like "an RSpec matcher", :valid_value => "ab", :invalid_value => "bc" do
let(:matcher) { start_with("a") }
View
2  spec/rspec/matchers/built_in/throw_symbol_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Matchers::BuiltIn
describe ThrowSymbol do
it_behaves_like("an RSpec matcher", :valid_value => lambda { throw :foo },
View
2  spec/rspec/matchers/built_in/yield_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module YieldHelpers
# these helpers are prefixed with an underscore to prevent
# collisions with the matchers (some of which have the same names)
View
1  spec/rspec/matchers/configuration_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'delegate'
module RSpec
View
2  spec/rspec/matchers/description_generation_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "Matchers should be able to generate their own descriptions" do
after(:each) do
RSpec::Matchers.clear_generated_description
View
1  spec/rspec/matchers/dsl_spec.rb
@@ -1,5 +1,4 @@
# encoding: utf-8
-require 'spec_helper'
describe "a matcher defined using the matcher DSL" do
def question?
View
2  spec/rspec/matchers/legacy_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Matchers
describe "Legacy matchers" do
View
2  spec/rspec/matchers_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
main = self
describe RSpec::Matchers do
include ::RSpec::Support::InSubProcess
Please sign in to comment.
Something went wrong with that request. Please try again.