Skip to content
Browse files

Switch to `--require spec_helper` option.

  • Loading branch information...
1 parent 0bce361 commit 55a21711f755c29de05947106fdde779d82d675c @myronmarston myronmarston committed Feb 23, 2014
Showing with 1 addition and 106 deletions.
  1. +1 −0 .rspec
  2. +0 −1 spec/rspec/mocks/and_call_original_spec.rb
  3. +0 −2 spec/rspec/mocks/and_return_spec.rb
  4. +0 −2 spec/rspec/mocks/and_yield_spec.rb
  5. +0 −2 spec/rspec/mocks/any_instance/message_chains_spec.rb
  6. +0 −1 spec/rspec/mocks/any_instance_spec.rb
  7. +0 −2 spec/rspec/mocks/array_including_matcher_spec.rb
  8. +0 −2 spec/rspec/mocks/at_least_spec.rb
  9. +0 −2 spec/rspec/mocks/at_most_spec.rb
  10. +0 −2 spec/rspec/mocks/before_all_spec.rb
  11. +0 −2 spec/rspec/mocks/block_return_value_spec.rb
  12. +0 −2 spec/rspec/mocks/combining_implementation_instructions_spec.rb
  13. +0 −2 spec/rspec/mocks/configuration_spec.rb
  14. +0 −2 spec/rspec/mocks/double_spec.rb
  15. +0 −2 spec/rspec/mocks/example_methods_spec.rb
  16. +0 −2 spec/rspec/mocks/extensions/marshal_spec.rb
  17. +0 −2 spec/rspec/mocks/failing_argument_matchers_spec.rb
  18. +0 −2 spec/rspec/mocks/hash_excluding_matcher_spec.rb
  19. +0 −2 spec/rspec/mocks/hash_including_matcher_spec.rb
  20. +0 −2 spec/rspec/mocks/instance_method_stasher_spec.rb
  21. +0 −2 spec/rspec/mocks/matchers/have_received_spec.rb
  22. +0 −3 spec/rspec/mocks/matchers/receive_message_chain_spec.rb
  23. +0 −2 spec/rspec/mocks/matchers/receive_messages_spec.rb
  24. +0 −2 spec/rspec/mocks/matchers/receive_spec.rb
  25. +0 −2 spec/rspec/mocks/method_signature_verifier_spec.rb
  26. +0 −2 spec/rspec/mocks/methods_spec.rb
  27. +0 −2 spec/rspec/mocks/mock_expectation_error_spec.rb
  28. +0 −2 spec/rspec/mocks/mock_ordering_spec.rb
  29. +0 −2 spec/rspec/mocks/multiple_return_value_spec.rb
  30. +0 −2 spec/rspec/mocks/mutate_const_spec.rb
  31. +0 −2 spec/rspec/mocks/nil_expectation_warning_spec.rb
  32. +0 −2 spec/rspec/mocks/null_object_double_spec.rb
  33. +0 −2 spec/rspec/mocks/once_counts_spec.rb
  34. +0 −2 spec/rspec/mocks/options_hash_spec.rb
  35. +0 −1 spec/rspec/mocks/order_group_spec.rb
  36. +0 −2 spec/rspec/mocks/partial_double_spec.rb
  37. +0 −2 spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb
  38. +0 −2 spec/rspec/mocks/passing_argument_matchers_spec.rb
  39. +0 −2 spec/rspec/mocks/precise_counts_spec.rb
  40. +0 −2 spec/rspec/mocks/record_messages_spec.rb
  41. +0 −2 spec/rspec/mocks/serialization_spec.rb
  42. +0 −1 spec/rspec/mocks/space_spec.rb
  43. +0 −3 spec/rspec/mocks/stash_spec.rb
  44. +0 −2 spec/rspec/mocks/stub_chain_spec.rb
  45. +0 −2 spec/rspec/mocks/stub_implementation_spec.rb
  46. +0 −2 spec/rspec/mocks/stub_spec.rb
  47. +0 −2 spec/rspec/mocks/stubbed_message_expectations_spec.rb
  48. +0 −2 spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
  49. +0 −2 spec/rspec/mocks/syntax_spec.rb
  50. +0 −2 spec/rspec/mocks/test_double_spec.rb
  51. +0 −2 spec/rspec/mocks/to_ary_spec.rb
  52. +0 −2 spec/rspec/mocks/twice_counts_spec.rb
  53. +0 −2 spec/rspec/mocks/verifying_double_spec.rb
  54. +0 −2 spec/rspec/mocks/verifying_message_expecation_spec.rb
  55. +0 −2 spec/rspec/mocks_spec.rb
View
1 .rspec
@@ -1 +1,2 @@
--warnings
+--require spec_helper
View
1 spec/rspec/mocks/and_call_original_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'delegate'
describe "and_call_original" do
View
2 spec/rspec/mocks/and_return_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe 'and_return' do
View
2 spec/rspec/mocks/and_yield_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe RSpec::Mocks::Double do
let(:obj) { double }
View
2 spec/rspec/mocks/any_instance/message_chains_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe RSpec::Mocks::AnyInstance::MessageChains do
let(:recorder) { double }
let(:chains) { RSpec::Mocks::AnyInstance::MessageChains.new }
View
1 spec/rspec/mocks/any_instance_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
require 'delegate'
module RSpec
View
2 spec/rspec/mocks/array_including_matcher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
module ArgumentMatchers
View
2 spec/rspec/mocks/at_least_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "at_least" do
View
2 spec/rspec/mocks/at_most_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "at_most" do
View
2 spec/rspec/mocks/before_all_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
describe "Using rspec-mocks features in before(:all) blocks" do
shared_examples_for "fails in a before(:all) block" do
the_error = nil
View
2 spec/rspec/mocks/block_return_value_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
describe "a double declaration with a block handed to:" do
describe "should_receive" do
it "returns the value of executing the block" do
View
2 spec/rspec/mocks/combining_implementation_instructions_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "Combining implementation instructions" do
View
2 spec/rspec/mocks/configuration_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe Configuration do
View
2 spec/rspec/mocks/double_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe Double do
View
2 spec/rspec/mocks/example_methods_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe ExampleMethods do
View
2 spec/rspec/mocks/extensions/marshal_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe Marshal, 'extensions' do
# An object that raises when code attempts to dup it.
#
View
2 spec/rspec/mocks/failing_argument_matchers_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "failing MockArgumentMatchers" do
View
2 spec/rspec/mocks/hash_excluding_matcher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
module ArgumentMatchers
View
2 spec/rspec/mocks/hash_including_matcher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
module ArgumentMatchers
View
2 spec/rspec/mocks/instance_method_stasher_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe InstanceMethodStasher do
View
2 spec/rspec/mocks/matchers/have_received_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe Matchers::HaveReceived do
View
3 spec/rspec/mocks/matchers/receive_message_chain_spec.rb
@@ -1,6 +1,3 @@
-require "spec_helper"
-
-
module RSpec::Mocks::Matchers
describe "receive_message_chain" do
let(:object) { double(:object) }
View
2 spec/rspec/mocks/matchers/receive_messages_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
shared_examples_for "complains when given blocks" do
View
2 spec/rspec/mocks/matchers/receive_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe Matchers::Receive do
View
2 spec/rspec/mocks/method_signature_verifier_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe MethodSignatureVerifier do
View
2 spec/rspec/mocks/methods_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "Methods added to every object" do
View
2 spec/rspec/mocks/mock_expectation_error_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe 'MockExpectationError' do
View
2 spec/rspec/mocks/mock_ordering_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
View
2 spec/rspec/mocks/multiple_return_value_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "a double stubbed with multiple return values" do
View
2 spec/rspec/mocks/mutate_const_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
TOP_LEVEL_VALUE_CONST = 7
class TestClass
View
2 spec/rspec/mocks/nil_expectation_warning_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "an expectation set on nil" do
View
2 spec/rspec/mocks/null_object_double_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "a double _not_ acting as a null object" do
View
2 spec/rspec/mocks/once_counts_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "#once" do
View
2 spec/rspec/mocks/options_hash_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "calling :should_receive with an options hash" do
View
1 spec/rspec/mocks/order_group_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
describe 'OrderGroup' do
let(:order_group) { ::RSpec::Mocks::OrderGroup.new }
View
2 spec/rspec/mocks/partial_double_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "A partial double" do
View
2 spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec::Mocks
describe "PartialDoubleUsingMocksDirectly" do
let(:klass) do
View
2 spec/rspec/mocks/passing_argument_matchers_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "Passing argument matchers" do
View
2 spec/rspec/mocks/precise_counts_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "PreciseCounts" do
View
2 spec/rspec/mocks/record_messages_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "a mock" do
View
2 spec/rspec/mocks/serialization_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "Serialization of mocked objects" do
View
1 spec/rspec/mocks/space_spec.rb
@@ -1,4 +1,3 @@
-require 'spec_helper'
module RSpec::Mocks
describe Space do
View
3 spec/rspec/mocks/stash_spec.rb
@@ -1,8 +1,5 @@
-require 'spec_helper'
-
module RSpec
module Mocks
-
describe "only stashing the original method" do
let(:klass) do
Class.new do
View
2 spec/rspec/mocks/stub_chain_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "A chained method stub" do
View
2 spec/rspec/mocks/stub_implementation_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "stub implementation" do
View
2 spec/rspec/mocks/stub_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "A method stub" do
View
2 spec/rspec/mocks/stubbed_message_expectations_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
describe "expection set on previously stubbed method" do
it "fails if message is not received after expectation is set" do
double = double(:msg => nil)
View
2 spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
module RSpec
module Mocks
View
2 spec/rspec/mocks/syntax_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
module RSpec::Mocks
describe Syntax do
context "when the should syntax is enabled on a non-default syntax host" do
View
2 spec/rspec/mocks/test_double_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe TestDouble do
View
2 spec/rspec/mocks/to_ary_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
describe "a double receiving to_ary" do
shared_examples "to_ary" do
it "can be overridden with a stub" do
View
2 spec/rspec/mocks/twice_counts_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe "#twice" do
View
2 spec/rspec/mocks/verifying_double_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
class LoadedClass
extend RSpec::Mocks::RubyFeatures
View
2 spec/rspec/mocks/verifying_message_expecation_spec.rb
@@ -1,5 +1,3 @@
-require 'spec_helper'
-
module RSpec
module Mocks
describe VerifyingMessageExpectation do
View
2 spec/rspec/mocks_spec.rb
@@ -1,5 +1,3 @@
-require "spec_helper"
-
describe RSpec::Mocks do
describe ".verify" do
it "delegates to the space" do

0 comments on commit 55a2171

Please sign in to comment.
Something went wrong with that request. Please try again.