Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Switch to --require spec_helper option.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Feb 23, 2014
1 parent 0bce361 commit 55a2171
Show file tree
Hide file tree
Showing 55 changed files with 1 addition and 106 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--warnings
--require spec_helper
1 change: 0 additions & 1 deletion spec/rspec/mocks/and_call_original_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'spec_helper'
require 'delegate'

describe "and_call_original" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/and_return_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe 'and_return' do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/and_yield_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe RSpec::Mocks::Double do

let(:obj) { double }
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/any_instance/message_chains_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe RSpec::Mocks::AnyInstance::MessageChains do
let(:recorder) { double }
let(:chains) { RSpec::Mocks::AnyInstance::MessageChains.new }
Expand Down
1 change: 0 additions & 1 deletion spec/rspec/mocks/any_instance_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'spec_helper'
require 'delegate'

module RSpec
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/array_including_matcher_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
module ArgumentMatchers
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/at_least_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "at_least" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/at_most_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "at_most" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/before_all_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/block_return_value_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "Combining implementation instructions" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/configuration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe Configuration do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/double_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe Double do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/example_methods_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe ExampleMethods do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/extensions/marshal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

describe Marshal, 'extensions' do
# An object that raises when code attempts to dup it.
#
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/failing_argument_matchers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "failing MockArgumentMatchers" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/hash_excluding_matcher_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
module ArgumentMatchers
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/hash_including_matcher_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
module ArgumentMatchers
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/instance_method_stasher_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe InstanceMethodStasher do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/matchers/have_received_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe Matchers::HaveReceived do
Expand Down
3 changes: 0 additions & 3 deletions spec/rspec/mocks/matchers/receive_message_chain_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
require "spec_helper"


module RSpec::Mocks::Matchers
describe "receive_message_chain" do
let(:object) { double(:object) }
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/matchers/receive_messages_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
shared_examples_for "complains when given blocks" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/matchers/receive_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe Matchers::Receive do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/method_signature_verifier_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe MethodSignatureVerifier do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/methods_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "Methods added to every object" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/mock_expectation_error_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe 'MockExpectationError' do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/mock_ordering_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks

Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/multiple_return_value_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "a double stubbed with multiple return values" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/mutate_const_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

TOP_LEVEL_VALUE_CONST = 7

class TestClass
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/nil_expectation_warning_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "an expectation set on nil" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/null_object_double_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "a double _not_ acting as a null object" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/once_counts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "#once" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/options_hash_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "calling :should_receive with an options hash" do
Expand Down
1 change: 0 additions & 1 deletion spec/rspec/mocks/order_group_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'spec_helper'
describe 'OrderGroup' do
let(:order_group) { ::RSpec::Mocks::OrderGroup.new }

Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/partial_double_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "A partial double" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec::Mocks
describe "PartialDoubleUsingMocksDirectly" do
let(:klass) do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/passing_argument_matchers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "Passing argument matchers" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/precise_counts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "PreciseCounts" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/record_messages_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "a mock" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/serialization_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "Serialization of mocked objects" do
Expand Down
1 change: 0 additions & 1 deletion spec/rspec/mocks/space_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'spec_helper'

module RSpec::Mocks
describe Space do
Expand Down
3 changes: 0 additions & 3 deletions spec/rspec/mocks/stash_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
require 'spec_helper'

module RSpec
module Mocks

describe "only stashing the original method" do
let(:klass) do
Class.new do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/stub_chain_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "A chained method stub" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/stub_implementation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "stub implementation" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/stub_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "A method stub" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/stubbed_message_expectations_spec.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/syntax_agnostic_message_matchers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

module RSpec
module Mocks

Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/syntax_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/test_double_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe TestDouble do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/to_ary_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/twice_counts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe "#twice" do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/verifying_double_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

class LoadedClass
extend RSpec::Mocks::RubyFeatures

Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks/verifying_message_expecation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'spec_helper'

module RSpec
module Mocks
describe VerifyingMessageExpectation do
Expand Down
2 changes: 0 additions & 2 deletions spec/rspec/mocks_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "spec_helper"

describe RSpec::Mocks do
describe ".verify" do
it "delegates to the space" do
Expand Down

0 comments on commit 55a2171

Please sign in to comment.