diff --git a/source/documentation/3.13/rspec-mocks/BasicObject.html b/source/documentation/3.13/rspec-mocks/BasicObject.html index 5eaabc476..4e6f01071 100644 --- a/source/documentation/3.13/rspec-mocks/BasicObject.html +++ b/source/documentation/3.13/rspec-mocks/BasicObject.html @@ -5,7 +5,7 @@ Class: BasicObject - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -63,9 +63,9 @@

Overview

diff --git a/source/documentation/3.13/rspec-mocks/Class.html b/source/documentation/3.13/rspec-mocks/Class.html index 4f72ce151..e0fcd1c7d 100644 --- a/source/documentation/3.13/rspec-mocks/Class.html +++ b/source/documentation/3.13/rspec-mocks/Class.html @@ -5,7 +5,7 @@ Class: Class - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -106,7 +106,7 @@

-

Examples:

+

Examples:

Car.any_instance.should_receive(:go)
 race = Race.new
 race.cars << Car.new
@@ -143,9 +143,9 @@ 

diff --git a/source/documentation/3.13/rspec-mocks/RSpec.html b/source/documentation/3.13/rspec-mocks/RSpec.html index 71a2bba4c..e45c82297 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec.html +++ b/source/documentation/3.13/rspec-mocks/RSpec.html @@ -5,7 +5,7 @@ Module: RSpec - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -62,9 +62,9 @@

Overview

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks.html index d9af4eef5..849db2b40 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -196,9 +196,9 @@

-

Examples:

-

Defines the implementation of foo on bar, using the passed block

-

+

Examples:

+

Defines the implementation of foo on bar, using the passed block

+
x = 0
 RSpec::Mocks.allow_message(bar, :foo) { x += 1 }
@@ -291,9 +291,9 @@

-

Examples:

-

Expect the message foo to receive bar, then call it

-

+

Examples:

+

Expect the message foo to receive bar, then call it

+
RSpec::Mocks.expect_message(bar, :foo)
 bar.foo
@@ -489,9 +489,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentListMatcher.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentListMatcher.html index 48f0c0ee7..e20c4abd0 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentListMatcher.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentListMatcher.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::ArgumentListMatcher - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -232,9 +232,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentMatchers.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentMatchers.html index a53e68506..105189a25 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentMatchers.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ArgumentMatchers.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::ArgumentMatchers - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -166,7 +166,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(1, 2, any_args)
 # matches any of these:
 object.message(1, 2)
@@ -200,7 +200,7 @@ 

-

Examples:

+

Examples:

expect(object).to receive(:message).with(anything)
@@ -230,7 +230,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(array_excluding(1,2,3))
 expect(object).to receive(:message).with(array_excluding([1,2,3]))
@@ -264,7 +264,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(array_including(1,2,3))
 expect(object).to receive(:message).with(array_including([1,2,3]))
@@ -297,7 +297,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(boolean())

@@ -327,7 +327,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(duck_type(:hello))
 expect(object).to receive(:message).with(duck_type(:hello, :goodbye))
@@ -361,7 +361,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(hash_excluding(:key => val))
 expect(object).to receive(:message).with(hash_excluding(:key))
 expect(object).to receive(:message).with(hash_excluding(:key, :key2 => :val2))
@@ -394,7 +394,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(hash_including(:key => val))
 expect(object).to receive(:message).with(hash_including(:key))
 expect(object).to receive(:message).with(hash_including(:key, :key2 => val2))
@@ -429,7 +429,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(instance_of(Thing))

@@ -462,7 +462,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(kind_of(Thing))

@@ -492,7 +492,7 @@

-

Examples:

+

Examples:

expect(object).to receive(:message).with(no_args)

@@ -515,9 +515,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Configuration.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Configuration.html index c69abe598..780c5bd04 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Configuration.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Configuration.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::Configuration - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -273,7 +273,7 @@

-

Examples:

+

Examples:

RSpec.configure do |config|
   config.mock_with :rspec do |mocks|
     mocks.allow_message_expectations_on_nil = false
@@ -399,7 +399,7 @@ 

-

Examples:

+

Examples:

RSpec.configure do |rspec|
   rspec.mock_with :rspec do |mocks|
     mocks.yield_receiver_to_any_instance_implementation_blocks = false
@@ -441,7 +441,7 @@ 

-

Examples:

+

Examples:

RSpec.configure do |rspec|
   rspec.mock_with :rspec do |mocks|
     mocks.add_stub_and_should_receive_to Delegator
@@ -482,7 +482,7 @@ 

-

Examples:

+

Examples:

RSpec::Mocks.configuration.before_verifying_doubles do |ref|
   ref.some_method!
 end
@@ -620,7 +620,7 @@

-

Examples:

+

Examples:

unless RSpec::Mocks.configuration.syntax.include?(:expect)
   raise "this RSpec extension gem requires the rspec-mocks `:expect` syntax"
 end
@@ -663,7 +663,7 @@

-

Examples:

+

Examples:

RSpec.configure do |rspec|
   rspec.mock_with :rspec do |mocks|
     mocks.syntax = [:expect, :should]
@@ -892,9 +892,9 @@ 

- Generated on Sun Feb 4 20:34:25 2024 by + Generated on Wed Sep 4 15:23:12 2024 by yard - 0.9.34 (ruby-3.2.2). + 0.9.37 (ruby-3.2.2).

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Constant.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Constant.html index ce46c7daa..728d59a21 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Constant.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Constant.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::Constant - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -569,9 +569,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ConstantMutator.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ConstantMutator.html index bb892e597..3616c3b62 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ConstantMutator.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ConstantMutator.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::ConstantMutator - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -302,9 +302,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/DirectObjectReference.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/DirectObjectReference.html index e0279fcca..f2aa5c976 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/DirectObjectReference.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/DirectObjectReference.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::DirectObjectReference - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -342,9 +342,9 @@

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Double.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Double.html index 17b145876..651be60f7 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Double.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Double.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::Double - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -84,9 +84,9 @@

Dynamic Method Handling

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods.html index 4538d8ab3..a6bedd8d0 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::ExampleMethods - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -233,7 +233,7 @@

-

Examples:

+

Examples:

allow(dbl).to receive(:foo).with(5).and_return(:return_value)

@@ -265,7 +265,7 @@

-

Examples:

+

Examples:

allow_any_instance_of(MyClass).to receive(:foo)

@@ -601,7 +601,7 @@

-

Examples:

+

Examples:

book = double("book", :title => "The RSpec Book")
 book.title #=> "The RSpec Book"
 
@@ -718,7 +718,7 @@ 

-

Examples:

+

Examples:

expect(obj).to receive(:foo).with(5).and_return(:return_value)

@@ -750,7 +750,7 @@

-

Examples:

+

Examples:

expect_any_instance_of(MyClass).to receive(:foo)

@@ -787,7 +787,7 @@

-

Examples:

+

Examples:

invitation = double('invitation', accept: true)
 user.accept_invitation(invitation)
 expect(invitation).to have_received(:accept)
@@ -835,7 +835,7 @@ 

-

Examples:

+

Examples:

hide_const("MyClass") # => MyClass is now an undefined constant

Parameters:

@@ -1432,7 +1432,7 @@

-

Examples:

+

Examples:

expect(obj).to receive(:hello).with("world").exactly(3).times

@@ -1473,7 +1473,7 @@

Warning:

-

Examples:

+

Examples:

allow(double).to receive_message_chain("foo.bar") { :baz }
 allow(double).to receive_message_chain(:foo, :bar => :baz)
 allow(double).to receive_message_chain(:foo, :bar) { :baz }
@@ -1515,7 +1515,7 @@ 

-

Examples:

+

Examples:

allow(obj).to receive_messages(:speak => "Hello World")
 allow(obj).to receive_messages(:speak => "Hello", :meow => "Meow")
@@ -1649,7 +1649,7 @@

-

Examples:

+

Examples:

stub_const("MyClass", Class.new) # => Replaces (or defines) MyClass with a new class object.
 stub_const("SomeModel::PER_PAGE", 5) # => Sets SomeModel::PER_PAGE to 5.
 
@@ -1776,9 +1776,9 @@ 

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods/ExpectHost.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods/ExpectHost.html index dc9b45668..dfbd9a21b 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods/ExpectHost.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/ExampleMethods/ExpectHost.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::ExampleMethods::ExpectHost - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -59,9 +59,9 @@

Overview

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Matchers.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Matchers.html index ee792c268..7383d1d8f 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Matchers.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Matchers.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::Matchers - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -60,9 +60,9 @@

Overview

diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/MessageExpectation.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/MessageExpectation.html index 2582d44d7..995d87c04 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/MessageExpectation.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/MessageExpectation.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::MessageExpectation - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -86,7 +86,7 @@

  • - #and_invoke(first_proc, *procs) ⇒ nil + #and_invoke(first_proc, *procs, &_block) ⇒ nil

    Tells the object to invoke a Proc when it receives the message.

    @@ -100,7 +100,7 @@

  • - #and_return(first_value, *values) ⇒ nil + #and_return(first_value, *values, &_block) ⇒ nil

    Tells the object to return a value when it receives the message.

    @@ -236,7 +236,7 @@

    -

    Examples:

    +

    Examples:

    expect(counter).to receive(:increment).and_call_original
     original_count = counter.count
     counter.increment
    @@ -279,7 +279,7 @@ 

    - #and_invoke(first_proc, *procs) ⇒ nil + #and_invoke(first_proc, *procs, &_block) ⇒ nil

    Tells the object to invoke a Proc when it receives the message. Given @@ -292,14 +292,14 @@

    -

    Examples:

    +

    Examples:

    allow(api).to receive(:get_foo).and_invoke(-> { raise ApiTimeout })
     api.get_foo # => raises ApiTimeout
     api.get_foo # => raises ApiTimeout
     
     allow(api).to receive(:get_foo).and_invoke(-> { raise ApiTimeout }, -> { raise ApiTimeout }, -> { :a_foo })
     api.get_foo # => raises ApiTimeout
    -api.get_foo # => rasies ApiTimeout
    +api.get_foo # => raises ApiTimeout
     api.get_foo # => :a_foo
     api.get_foo # => :a_foo
     api.get_foo # => :a_foo
    @@ -341,7 +341,7 @@ 

  • # File 'lib/rspec/mocks/message_expectation.rb', line 109
    -def and_invoke(first_proc, *procs)
    +def and_invoke(first_proc, *procs, &_block)
       raise_already_invoked_error_if_necessary(__method__)
       if negative?
         raise "`and_invoke` is not supported with negative message expectations"
    @@ -383,7 +383,7 @@ 

    -

    Examples:

    +

    Examples:

    allow(car).to receive(:go).and_raise
     allow(car).to receive(:go).and_raise(OutOfGas)
     allow(car).to receive(:go).and_raise(OutOfGas, "At least 2 oz of gas needed to drive")
    @@ -435,7 +435,7 @@ 

    -

    Examples:

    +

    Examples:

    allow(counter).to receive(:count).and_return(1)
     counter.count # => 1
     counter.count # => 1
    @@ -480,7 +480,7 @@ 

    # File 'lib/rspec/mocks/message_expectation.rb', line 71
    -def and_return(first_value, *values)
    +def and_return(first_value, *values, &_block)
       raise_already_invoked_error_if_necessary(__method__)
       if negative?
         raise "`and_return` is not supported with negative message expectations"
    @@ -509,7 +509,7 @@ 

    -

    Examples:

    +

    Examples:

    allow(car).to receive(:go).and_throw(:out_of_gas)
     allow(car).to receive(:go).and_throw(:out_of_gas, :level => 0.1)
    @@ -561,7 +561,7 @@

    -

    Examples:

    +

    Examples:

    expect(api).to receive(:large_list).and_wrap_original do |original_method, *args, &block|
       original_method.call(*args, &block).first(10)
     end
    @@ -603,7 +603,7 @@

    -

    Examples:

    +

    Examples:

    stream.stub(:open).and_yield(StringIO.new)

    Yields:

    @@ -665,7 +665,7 @@

    -

    Examples:

    +

    Examples:

    expect(dealer).to receive(:deal_card).at_least(9).times

    Returns:

    @@ -720,7 +720,7 @@

    -

    Examples:

    +

    Examples:

    expect(dealer).to receive(:deal_card).at_most(10).times

    Returns:

    @@ -766,7 +766,7 @@

    -

    Examples:

    +

    Examples:

    expect(dealer).to receive(:deal_card).exactly(10).times

    Returns:

    @@ -811,7 +811,7 @@

    -

    Examples:

    +

    Examples:

    expect(car).to receive(:stop).never

    Returns:

    @@ -854,7 +854,7 @@

    -

    Examples:

    +

    Examples:

    expect(car).to receive(:go).once

    Returns:

    @@ -897,7 +897,7 @@

    -

    Examples:

    +

    Examples:

    expect(api).to receive(:prepare).ordered
     expect(api).to receive(:run).ordered
     expect(api).to receive(:finish).ordered
    @@ -961,7 +961,7 @@

    -

    Examples:

    +

    Examples:

    expect(car).to receive(:go).thrice

    Returns:

    @@ -1007,7 +1007,7 @@

    -

    Examples:

    +

    Examples:

    expect(dealer).to receive(:deal_card).exactly(10).times
     expect(dealer).to receive(:deal_card).at_least(10).times
     expect(dealer).to receive(:deal_card).at_most(10).times
    @@ -1092,7 +1092,7 @@

    -

    Examples:

    +

    Examples:

    expect(car).to receive(:go).twice

    Returns:

    @@ -1141,7 +1141,7 @@

    -

    Examples:

    +

    Examples:

    allow(cart).to receive(:add) { :failure }
     allow(cart).to receive(:add).with(Book.new(:isbn => 1934356379)) { :success }
     cart.add(Book.new(:isbn => 1234567890))
    @@ -1199,9 +1199,9 @@ 

    diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/NamedObjectReference.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/NamedObjectReference.html index 94d56f852..738775c6a 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/NamedObjectReference.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/NamedObjectReference.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::NamedObjectReference - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -310,9 +310,9 @@

    diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Syntax.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Syntax.html index 39ea60bb9..71aec57f0 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Syntax.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Syntax.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::Syntax - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -362,7 +362,7 @@

    def receive(method_name, &block) Matchers::Receive.new(method_name, block) end - def receive_messages(message_return_value_hash) + def receive_messages(message_return_value_hash, &_block) matcher = Matchers::ReceiveMessages.new(message_return_value_hash) matcher.warn_about_block if block_given? matcher @@ -600,9 +600,9 @@

    diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/TestDouble.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/TestDouble.html index b10be934e..0be253857 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/TestDouble.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/TestDouble.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::TestDouble - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -355,9 +355,9 @@

    diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/VerifyingMessageExpectation.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/VerifyingMessageExpectation.html index fcef7dfe5..4550d1b68 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/VerifyingMessageExpectation.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/VerifyingMessageExpectation.html @@ -5,7 +5,7 @@ Class: RSpec::Mocks::VerifyingMessageExpectation - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -178,9 +178,9 @@

    diff --git a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Version.html b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Version.html index a5a7f8478..0f2ce2e95 100644 --- a/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Version.html +++ b/source/documentation/3.13/rspec-mocks/RSpec/Mocks/Version.html @@ -5,7 +5,7 @@ Module: RSpec::Mocks::Version - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -70,13 +70,13 @@

    -
    '3.13.0'
    +
    '3.13.1'
    diff --git a/source/documentation/3.13/rspec-mocks/_index.html b/source/documentation/3.13/rspec-mocks/_index.html index 50836a1f8..307e3dbf6 100644 --- a/source/documentation/3.13/rspec-mocks/_index.html +++ b/source/documentation/3.13/rspec-mocks/_index.html @@ -4,7 +4,7 @@ - Documentation by YARD 0.9.34 + Documentation by YARD 0.9.37 @@ -36,7 +36,7 @@
    -

    Documentation by YARD 0.9.34

    +

    Documentation by YARD 0.9.37

    Alphabetic Index

    File Listing

    @@ -190,9 +190,9 @@

    Namespace Listing A-Z

    diff --git a/source/documentation/3.13/rspec-mocks/class_list.html b/source/documentation/3.13/rspec-mocks/class_list.html index a257c2808..57b9515c3 100644 --- a/source/documentation/3.13/rspec-mocks/class_list.html +++ b/source/documentation/3.13/rspec-mocks/class_list.html @@ -1,5 +1,5 @@ - + @@ -25,11 +25,14 @@

    Class List

    Files - + diff --git a/source/documentation/3.13/rspec-mocks/css/full_list.css b/source/documentation/3.13/rspec-mocks/css/full_list.css index fa3598242..6eef5e4a0 100644 --- a/source/documentation/3.13/rspec-mocks/css/full_list.css +++ b/source/documentation/3.13/rspec-mocks/css/full_list.css @@ -20,8 +20,8 @@ h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; } #content.insearch #noresults { margin-left: 7px; } li.collapsed ul { display: none; } li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; } -li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; } -li { color: #888; cursor: pointer; } +li.collapsed a.toggle { cursor: default; background-position: top left; } +li { color: #666; cursor: pointer; } li.deprecated { text-decoration: line-through; font-style: italic; } li.odd { background: #f0f0f0; } li.even { background: #fafafa; } @@ -47,7 +47,7 @@ li small { display: block; font-size: 0.8em; } li small:before { content: ""; } li small:after { content: ""; } li small.search_info { display: none; } -#search { width: 170px; position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; padding-left: 0; padding-right: 24px; } +#search { width: 170px; position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #666; padding-left: 0; padding-right: 24px; } #content.insearch #search { background-position: center right; } #search input { width: 110px; } diff --git a/source/documentation/3.13/rspec-mocks/css/style.css b/source/documentation/3.13/rspec-mocks/css/style.css index eb0dbc86f..f169a6518 100644 --- a/source/documentation/3.13/rspec-mocks/css/style.css +++ b/source/documentation/3.13/rspec-mocks/css/style.css @@ -82,6 +82,11 @@ body { #search { display: none; } } +@media (max-width: 320px) { + body { height: 100%; overflow: hidden; overflow-wrap: break-word; } + #main { height: 100%; overflow: auto; } +} + #main img { max-width: 100%; } h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; } h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; } @@ -106,6 +111,7 @@ h2 small a { position: relative; padding: 2px 7px; } +a { font-weight: 550; } .clear { clear: both; } .inline { display: inline; } .inline p:first-child { display: inline; } diff --git a/source/documentation/3.13/rspec-mocks/file.Changelog.html b/source/documentation/3.13/rspec-mocks/file.Changelog.html index c334748c8..479af5e91 100644 --- a/source/documentation/3.13/rspec-mocks/file.Changelog.html +++ b/source/documentation/3.13/rspec-mocks/file.Changelog.html @@ -5,7 +5,7 @@ File: Changelog - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -40,7 +40,14 @@

    Development

    -

    Full Changelog

    +

    Full Changelog

    +

    3.13.1 / 2024-05-08

    +

    Full Changelog

    +

    Bug Fixes:

    +
      +
    • Use RSpec::Support::Mutex in RSpec::Mocks::Proxy to avoid issues from +stubbing ::Mutex#new. (Eric Mueller, #1575)
    • +

    3.13.0 / 2024-02-04

    Full Changelog

    Enhancements:

    @@ -1226,9 +1233,9 @@

    2.0.0.beta.22 / 2010-09-12

    diff --git a/source/documentation/3.13/rspec-mocks/file.LICENSE.html b/source/documentation/3.13/rspec-mocks/file.LICENSE.html index f61d6514b..cc0c1b59b 100644 --- a/source/documentation/3.13/rspec-mocks/file.LICENSE.html +++ b/source/documentation/3.13/rspec-mocks/file.LICENSE.html @@ -5,7 +5,7 @@ File: LICENSE - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -63,9 +63,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    diff --git a/source/documentation/3.13/rspec-mocks/file.README.html b/source/documentation/3.13/rspec-mocks/file.README.html index 51ee36c5d..ae81b4955 100644 --- a/source/documentation/3.13/rspec-mocks/file.README.html +++ b/source/documentation/3.13/rspec-mocks/file.README.html @@ -5,7 +5,7 @@ File: README - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -373,9 +373,9 @@

    Also see

    diff --git a/source/documentation/3.13/rspec-mocks/file_list.html b/source/documentation/3.13/rspec-mocks/file_list.html index 9cfa6cff9..75cbccf9a 100644 --- a/source/documentation/3.13/rspec-mocks/file_list.html +++ b/source/documentation/3.13/rspec-mocks/file_list.html @@ -1,5 +1,5 @@ - + @@ -25,7 +25,10 @@

    File List

    Files - +
    • diff --git a/source/documentation/3.13/rspec-mocks/frames.html b/source/documentation/3.13/rspec-mocks/frames.html index 4f918f573..6586005fd 100644 --- a/source/documentation/3.13/rspec-mocks/frames.html +++ b/source/documentation/3.13/rspec-mocks/frames.html @@ -2,13 +2,18 @@ - Documentation by YARD 0.9.34 + Documentation by YARD 0.9.37
    diff --git a/source/documentation/3.13/rspec-mocks/js/app.js b/source/documentation/3.13/rspec-mocks/js/app.js index 8d067fe30..b5610effe 100644 --- a/source/documentation/3.13/rspec-mocks/js/app.js +++ b/source/documentation/3.13/rspec-mocks/js/app.js @@ -1,314 +1,344 @@ -(function() { +(function () { + var localStorage = {}, + sessionStorage = {}; + try { + localStorage = window.localStorage; + } catch (e) {} + try { + sessionStorage = window.sessionStorage; + } catch (e) {} -var localStorage = {}, sessionStorage = {}; -try { localStorage = window.localStorage; } catch (e) { } -try { sessionStorage = window.sessionStorage; } catch (e) { } - -function createSourceLinks() { - $('.method_details_list .source_code'). - before("[View source]"); - $('.toggleSource').toggle(function() { - $(this).parent().nextAll('.source_code').slideDown(100); - $(this).text("Hide source"); - }, - function() { - $(this).parent().nextAll('.source_code').slideUp(100); + function createSourceLinks() { + $(".method_details_list .source_code").before( + "[View source]" + ); + $(".toggleSource").toggle( + function () { + $(this).parent().nextAll(".source_code").slideDown(100); + $(this).text("Hide source"); + }, + function () { + $(this).parent().nextAll(".source_code").slideUp(100); $(this).text("View source"); - }); -} + } + ); + } -function createDefineLinks() { + function createDefineLinks() { var tHeight = 0; - $('.defines').after(" more..."); - $('.toggleDefines').toggle(function() { + $(".defines").after(" more..."); + $(".toggleDefines").toggle( + function () { tHeight = $(this).parent().prev().height(); - $(this).prev().css('display', 'inline'); + $(this).prev().css("display", "inline"); $(this).parent().prev().height($(this).parent().height()); $(this).text("(less)"); - }, - function() { + }, + function () { $(this).prev().hide(); $(this).parent().prev().height(tHeight); $(this).text("more..."); - }); -} + } + ); + } -function createFullTreeLinks() { + function createFullTreeLinks() { var tHeight = 0; - $('.inheritanceTree').toggle(function() { + $(".inheritanceTree").toggle( + function () { tHeight = $(this).parent().prev().height(); - $(this).parent().toggleClass('showAll'); + $(this).parent().toggleClass("showAll"); $(this).text("(hide)"); $(this).parent().prev().height($(this).parent().height()); - }, - function() { - $(this).parent().toggleClass('showAll'); + }, + function () { + $(this).parent().toggleClass("showAll"); $(this).parent().prev().height(tHeight); $(this).text("show all"); + } + ); + } + + function searchFrameButtons() { + $(".full_list_link").click(function () { + toggleSearchFrame(this, $(this).attr("href")); + return false; + }); + window.addEventListener("message", function (e) { + if (e.data === "navEscape") { + $("#nav").slideUp(100); + $("#search a").removeClass("active inactive"); + $(window).focus(); + } }); -} -function searchFrameButtons() { - $('.full_list_link').click(function() { - toggleSearchFrame(this, $(this).attr('href')); - return false; - }); - window.addEventListener('message', function(e) { - if (e.data === 'navEscape') { - $('#nav').slideUp(100); - $('#search a').removeClass('active inactive'); - $(window).focus(); - } - }); + $(window).resize(function () { + if ($("#search:visible").length === 0) { + $("#nav").removeAttr("style"); + $("#search a").removeClass("active inactive"); + $(window).focus(); + } + }); + } - $(window).resize(function() { - if ($('#search:visible').length === 0) { - $('#nav').removeAttr('style'); - $('#search a').removeClass('active inactive'); - $(window).focus(); + function toggleSearchFrame(id, link) { + var frame = $("#nav"); + $("#search a").removeClass("active").addClass("inactive"); + if (frame.attr("src") === link && frame.css("display") !== "none") { + frame.slideUp(100); + $("#search a").removeClass("active inactive"); + } else { + $(id).addClass("active").removeClass("inactive"); + if (frame.attr("src") !== link) frame.attr("src", link); + frame.slideDown(100); } - }); -} - -function toggleSearchFrame(id, link) { - var frame = $('#nav'); - $('#search a').removeClass('active').addClass('inactive'); - if (frame.attr('src') === link && frame.css('display') !== "none") { - frame.slideUp(100); - $('#search a').removeClass('active inactive'); } - else { - $(id).addClass('active').removeClass('inactive'); - if (frame.attr('src') !== link) frame.attr('src', link); - frame.slideDown(100); - } -} -function linkSummaries() { - $('.summary_signature').click(function() { - document.location = $(this).find('a').attr('href'); - }); -} + function linkSummaries() { + $(".summary_signature").click(function () { + document.location = $(this).find("a").attr("href"); + }); + } -function summaryToggle() { - $('.summary_toggle').click(function(e) { - e.preventDefault(); - localStorage.summaryCollapsed = $(this).text(); - $('.summary_toggle').each(function() { - $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); - var next = $(this).parent().parent().nextAll('ul.summary').first(); - if (next.hasClass('compact')) { - next.toggle(); - next.nextAll('ul.summary').first().toggle(); - } - else if (next.hasClass('summary')) { - var list = $('
      '); - list.html(next.html()); - list.find('.summary_desc, .note').remove(); - list.find('a').each(function() { - $(this).html($(this).find('strong').html()); - $(this).parent().html($(this)[0].outerHTML); - }); - next.before(list); - next.toggle(); - } + function summaryToggle() { + $(".summary_toggle").click(function (e) { + e.preventDefault(); + localStorage.summaryCollapsed = $(this).text(); + $(".summary_toggle").each(function () { + $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); + var next = $(this).parent().parent().nextAll("ul.summary").first(); + if (next.hasClass("compact")) { + next.toggle(); + next.nextAll("ul.summary").first().toggle(); + } else if (next.hasClass("summary")) { + var list = $('
        '); + list.html(next.html()); + list.find(".summary_desc, .note").remove(); + list.find("a").each(function () { + $(this).html($(this).find("strong").html()); + $(this).parent().html($(this)[0].outerHTML); + }); + next.before(list); + next.toggle(); + } + }); + return false; }); - return false; - }); - if (localStorage.summaryCollapsed == "collapse") { - $('.summary_toggle').first().click(); - } else { localStorage.summaryCollapsed = "expand"; } -} + if (localStorage.summaryCollapsed == "collapse") { + $(".summary_toggle").first().click(); + } else { + localStorage.summaryCollapsed = "expand"; + } + } -function constantSummaryToggle() { - $('.constants_summary_toggle').click(function(e) { - e.preventDefault(); - localStorage.summaryCollapsed = $(this).text(); - $('.constants_summary_toggle').each(function() { - $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); - var next = $(this).parent().parent().nextAll('dl.constants').first(); - if (next.hasClass('compact')) { - next.toggle(); - next.nextAll('dl.constants').first().toggle(); - } - else if (next.hasClass('constants')) { - var list = $('
        '); - list.html(next.html()); - list.find('dt').each(function() { - $(this).addClass('summary_signature'); - $(this).text( $(this).text().split('=')[0]); - if ($(this).has(".deprecated").length) { - $(this).addClass('deprecated'); - }; - }); - // Add the value of the constant as "Tooltip" to the summary object - list.find('pre.code').each(function() { - console.log($(this).parent()); - var dt_element = $(this).parent().prev(); - var tooltip = $(this).text(); - if (dt_element.hasClass("deprecated")) { - tooltip = 'Deprecated. ' + tooltip; - }; - dt_element.attr('title', tooltip); - }); - list.find('.docstring, .tags, dd').remove(); - next.before(list); - next.toggle(); - } + function constantSummaryToggle() { + $(".constants_summary_toggle").click(function (e) { + e.preventDefault(); + localStorage.summaryCollapsed = $(this).text(); + $(".constants_summary_toggle").each(function () { + $(this).text($(this).text() == "collapse" ? "expand" : "collapse"); + var next = $(this).parent().parent().nextAll("dl.constants").first(); + if (next.hasClass("compact")) { + next.toggle(); + next.nextAll("dl.constants").first().toggle(); + } else if (next.hasClass("constants")) { + var list = $('
        '); + list.html(next.html()); + list.find("dt").each(function () { + $(this).addClass("summary_signature"); + $(this).text($(this).text().split("=")[0]); + if ($(this).has(".deprecated").length) { + $(this).addClass("deprecated"); + } + }); + // Add the value of the constant as "Tooltip" to the summary object + list.find("pre.code").each(function () { + console.log($(this).parent()); + var dt_element = $(this).parent().prev(); + var tooltip = $(this).text(); + if (dt_element.hasClass("deprecated")) { + tooltip = "Deprecated. " + tooltip; + } + dt_element.attr("title", tooltip); + }); + list.find(".docstring, .tags, dd").remove(); + next.before(list); + next.toggle(); + } + }); + return false; }); - return false; - }); - if (localStorage.summaryCollapsed == "collapse") { - $('.constants_summary_toggle').first().click(); - } else { localStorage.summaryCollapsed = "expand"; } -} + if (localStorage.summaryCollapsed == "collapse") { + $(".constants_summary_toggle").first().click(); + } else { + localStorage.summaryCollapsed = "expand"; + } + } -function generateTOC() { - if ($('#filecontents').length === 0) return; - var _toc = $('
          '); - var show = false; - var toc = _toc; - var counter = 0; - var tags = ['h2', 'h3', 'h4', 'h5', 'h6']; - var i; - var curli; - if ($('#filecontents h1').length > 1) tags.unshift('h1'); - for (i = 0; i < tags.length; i++) { tags[i] = '#filecontents ' + tags[i]; } - var lastTag = parseInt(tags[0][1], 10); - $(tags.join(', ')).each(function() { - if ($(this).parents('.method_details .docstring').length != 0) return; - if (this.id == "filecontents") return; - show = true; - var thisTag = parseInt(this.tagName[1], 10); - if (this.id.length === 0) { - var proposedId = $(this).attr('toc-id'); - if (typeof(proposedId) != "undefined") this.id = proposedId; - else { - var proposedId = $(this).text().replace(/[^a-z0-9-]/ig, '_'); - if ($('#' + proposedId).length > 0) { proposedId += counter; counter++; } - this.id = proposedId; - } + function generateTOC() { + if ($("#filecontents").length === 0) return; + var _toc = $('
            '); + var show = false; + var toc = _toc; + var counter = 0; + var tags = ["h2", "h3", "h4", "h5", "h6"]; + var i; + var curli; + if ($("#filecontents h1").length > 1) tags.unshift("h1"); + for (i = 0; i < tags.length; i++) { + tags[i] = "#filecontents " + tags[i]; } - if (thisTag > lastTag) { - for (i = 0; i < thisTag - lastTag; i++) { - if ( typeof(curli) == "undefined" ) { - curli = $('
          1. '); - toc.append(curli); + var lastTag = parseInt(tags[0][1], 10); + $(tags.join(", ")).each(function () { + if ($(this).parents(".method_details .docstring").length != 0) return; + if (this.id == "filecontents") return; + show = true; + var thisTag = parseInt(this.tagName[1], 10); + if (this.id.length === 0) { + var proposedId = $(this).attr("toc-id"); + if (typeof proposedId != "undefined") this.id = proposedId; + else { + var proposedId = $(this) + .text() + .replace(/[^a-z0-9-]/gi, "_"); + if ($("#" + proposedId).length > 0) { + proposedId += counter; + counter++; + } + this.id = proposedId; } - toc = $('
              '); - curli.append(toc); - curli = undefined; } - } - if (thisTag < lastTag) { - for (i = 0; i < lastTag - thisTag; i++) { - toc = toc.parent(); - toc = toc.parent(); + if (thisTag > lastTag) { + for (i = 0; i < thisTag - lastTag; i++) { + if (typeof curli == "undefined") { + curli = $("
            1. "); + toc.append(curli); + } + toc = $("
                "); + curli.append(toc); + curli = undefined; + } } - } - var title = $(this).attr('toc-title'); - if (typeof(title) == "undefined") title = $(this).text(); - curli =$('
              1. ' + title + '
              2. '); - toc.append(curli); - lastTag = thisTag; - }); - if (!show) return; - html = ''; - $('#content').prepend(html); - $('#toc').append(_toc); - $('#toc .hide_toc').toggle(function() { - $('#toc .top').slideUp('fast'); - $('#toc').toggleClass('hidden'); - $('#toc .title small').toggle(); - }, function() { - $('#toc .top').slideDown('fast'); - $('#toc').toggleClass('hidden'); - $('#toc .title small').toggle(); - }); -} - -function navResizeFn(e) { - if (e.which !== 1) { - navResizeFnStop(); - return; + if (thisTag < lastTag) { + for (i = 0; i < lastTag - thisTag; i++) { + toc = toc.parent(); + toc = toc.parent(); + } + } + var title = $(this).attr("toc-title"); + if (typeof title == "undefined") title = $(this).text(); + curli = $('
              3. ' + title + "
              4. "); + toc.append(curli); + lastTag = thisTag; + }); + if (!show) return; + html = + ''; + $("#content").prepend(html); + $("#toc").append(_toc); + $("#toc .hide_toc").toggle( + function () { + $("#toc .top").slideUp("fast"); + $("#toc").toggleClass("hidden"); + $("#toc .title small").toggle(); + }, + function () { + $("#toc .top").slideDown("fast"); + $("#toc").toggleClass("hidden"); + $("#toc .title small").toggle(); + } + ); } - sessionStorage.navWidth = e.pageX.toString(); - $('.nav_wrap').css('width', e.pageX); - $('.nav_wrap').css('-ms-flex', 'inherit'); -} - -function navResizeFnStop() { - $(window).unbind('mousemove', navResizeFn); - window.removeEventListener('message', navMessageFn, false); -} - -function navMessageFn(e) { - if (e.data.action === 'mousemove') navResizeFn(e.data.event); - if (e.data.action === 'mouseup') navResizeFnStop(); -} + function navResizeFn(e) { + if (e.which !== 1) { + navResizeFnStop(); + return; + } -function navResizer() { - $('#resizer').mousedown(function(e) { - e.preventDefault(); - $(window).mousemove(navResizeFn); - window.addEventListener('message', navMessageFn, false); - }); - $(window).mouseup(navResizeFnStop); + sessionStorage.navWidth = e.pageX.toString(); + $(".nav_wrap").css("width", e.pageX); + $(".nav_wrap").css("-ms-flex", "inherit"); + } - if (sessionStorage.navWidth) { - navResizeFn({which: 1, pageX: parseInt(sessionStorage.navWidth, 10)}); + function navResizeFnStop() { + $(window).unbind("mousemove", navResizeFn); + window.removeEventListener("message", navMessageFn, false); } -} -function navExpander() { - var done = false, timer = setTimeout(postMessage, 500); - function postMessage() { - if (done) return; - clearTimeout(timer); - var opts = { action: 'expand', path: pathId }; - document.getElementById('nav').contentWindow.postMessage(opts, '*'); - done = true; + function navMessageFn(e) { + if (e.data.action === "mousemove") navResizeFn(e.data.event); + if (e.data.action === "mouseup") navResizeFnStop(); } - window.addEventListener('message', function(event) { - if (event.data === 'navReady') postMessage(); - return false; - }, false); -} + function navResizer() { + $("#resizer").mousedown(function (e) { + e.preventDefault(); + $(window).mousemove(navResizeFn); + window.addEventListener("message", navMessageFn, false); + }); + $(window).mouseup(navResizeFnStop); -function mainFocus() { - var hash = window.location.hash; - if (hash !== '' && $(hash)[0]) { - $(hash)[0].scrollIntoView(); + if (sessionStorage.navWidth) { + navResizeFn({ which: 1, pageX: parseInt(sessionStorage.navWidth, 10) }); + } } - setTimeout(function() { $('#main').focus(); }, 10); -} + function navExpander() { + if (typeof pathId === "undefined") return; + var done = false, + timer = setTimeout(postMessage, 500); + function postMessage() { + if (done) return; + clearTimeout(timer); + var opts = { action: "expand", path: pathId }; + document.getElementById("nav").contentWindow.postMessage(opts, "*"); + done = true; + } -function navigationChange() { - // This works around the broken anchor navigation with the YARD template. - window.onpopstate = function() { + window.addEventListener( + "message", + function (event) { + if (event.data === "navReady") postMessage(); + return false; + }, + false + ); + } + + function mainFocus() { var hash = window.location.hash; - if (hash !== '' && $(hash)[0]) { + if (hash !== "" && $(hash)[0]) { $(hash)[0].scrollIntoView(); } - }; -} -$(document).ready(function() { - navResizer(); - navExpander(); - createSourceLinks(); - createDefineLinks(); - createFullTreeLinks(); - searchFrameButtons(); - linkSummaries(); - summaryToggle(); - constantSummaryToggle(); - generateTOC(); - mainFocus(); - navigationChange(); -}); + setTimeout(function () { + $("#main").focus(); + }, 10); + } + function navigationChange() { + // This works around the broken anchor navigation with the YARD template. + window.onpopstate = function () { + var hash = window.location.hash; + if (hash !== "" && $(hash)[0]) { + $(hash)[0].scrollIntoView(); + } + }; + } + + $(document).ready(function () { + navResizer(); + navExpander(); + createSourceLinks(); + createDefineLinks(); + createFullTreeLinks(); + searchFrameButtons(); + linkSummaries(); + summaryToggle(); + constantSummaryToggle(); + generateTOC(); + mainFocus(); + navigationChange(); + }); })(); diff --git a/source/documentation/3.13/rspec-mocks/js/full_list.js b/source/documentation/3.13/rspec-mocks/js/full_list.js index 59069c5e2..12bba48d8 100644 --- a/source/documentation/3.13/rspec-mocks/js/full_list.js +++ b/source/documentation/3.13/rspec-mocks/js/full_list.js @@ -62,8 +62,25 @@ function enableToggles() { evt.stopPropagation(); evt.preventDefault(); $(this).parent().parent().toggleClass('collapsed'); + $(this).attr('aria-expanded', function (i, attr) { + return attr == 'true' ? 'false' : 'true' + }); highlight(); }); + + // navigation of nested classes using keyboard + $('#full_list a.toggle').on('keypress',function(evt) { + // enter key is pressed + if (evt.which == 13) { + evt.stopPropagation(); + evt.preventDefault(); + $(this).parent().parent().toggleClass('collapsed'); + $(this).attr('aria-expanded', function (i, attr) { + return attr == 'true' ? 'false' : 'true' + }); + highlight(); + } + }); } function populateSearchCache() { @@ -91,7 +108,7 @@ function enableSearch() { } }); - $('#full_list').after(""); + $('#full_list').after(""); } function ignoredKeyPress(event) { @@ -154,11 +171,14 @@ function partialSearch(searchString, offset) { function searchDone() { searchTimeout = null; highlight(); - if ($('#full_list li:visible').size() === 0) { - $('#noresults').text('No results were found.').hide().fadeIn(); + var found = $('#full_list li:visible').size(); + if (found === 0) { + $('#noresults').text('No results were found.'); } else { - $('#noresults').text('').hide(); + // This is read out to screen readers + $('#noresults').text('There are ' + found + ' results.'); } + $('#noresults').show(); $('#content').removeClass('insearch'); } @@ -188,6 +208,12 @@ function expandTo(path) { $target.addClass('clicked'); $target.removeClass('collapsed'); $target.parentsUntil('#full_list', 'li').removeClass('collapsed'); + + $target.find('a.toggle').attr('aria-expanded', 'true') + $target.parentsUntil('#full_list', 'li').each(function(i, el) { + $(el).find('> div > a.toggle').attr('aria-expanded', 'true'); + }); + if($target[0]) { window.scrollTo(window.scrollX, $target.offset().top - 250); highlight(); diff --git a/source/documentation/3.13/rspec-mocks/method_list.html b/source/documentation/3.13/rspec-mocks/method_list.html index 39465ff75..d5dc3e2d0 100644 --- a/source/documentation/3.13/rspec-mocks/method_list.html +++ b/source/documentation/3.13/rspec-mocks/method_list.html @@ -1,5 +1,5 @@ - + @@ -25,7 +25,10 @@

                Method List

                Files - +
                • diff --git a/source/documentation/3.13/rspec-mocks/top-level-namespace.html b/source/documentation/3.13/rspec-mocks/top-level-namespace.html index c737a9354..dd150a30a 100644 --- a/source/documentation/3.13/rspec-mocks/top-level-namespace.html +++ b/source/documentation/3.13/rspec-mocks/top-level-namespace.html @@ -5,7 +5,7 @@ Top Level Namespace - — Documentation by YARD 0.9.34 + — Documentation by YARD 0.9.37 @@ -212,7 +212,7 @@

                  -

                  Examples:

                  +

                  Examples:

                  logger = double('logger')
                   thing_that_logs = ThingThatLogs.new(logger)
                   logger.should_receive(:log)
                  @@ -250,7 +250,7 @@ 

                  -

                  Examples:

                  +

                  Examples:

                  counter.stub(:count).and_return(37)
                   counter.stub(:count => 37)
                   counter.stub(:count) { 37 }
                  @@ -297,7 +297,7 @@

                  Warning:

                  -

                  Examples:

                  +

                  Examples:

                  double.stub_chain("foo.bar") { :baz }
                   double.stub_chain(:foo, :bar => :baz)
                   double.stub_chain(:foo, :bar) { :baz }
                  @@ -359,9 +359,9 @@ 

                  diff --git a/source/features/3-13/rspec-mocks/configuring-responses/mixed-responses.html.md b/source/features/3-13/rspec-mocks/configuring-responses/mixed-responses.html.md index 23ae17f38..d4e652ff9 100644 --- a/source/features/3-13/rspec-mocks/configuring-responses/mixed-responses.html.md +++ b/source/features/3-13/rspec-mocks/configuring-responses/mixed-responses.html.md @@ -4,9 +4,9 @@ Use `and_invoke` to invoke a callable when a message is received. Pass `and_invo callables to have different behavior for consecutive calls. The final callable will continue to be called if the message is received additional times. - Note: The invoked callable will be invoked with the calls arguments, so it is recommended to - use a `lambda` or similar with the same arity as your method but you can use a `proc` if you - do not care about arity (e.g. when raising). + Note: The invoked callable will be given the same arguments as the original call, which includes any blocks + (meaning for example `yield` will be supported). It is recommended to use a `lambda` or similar with the same + arity as your method but you can use a `proc` if you do not care about arity (e.g. when raising). ## Mixed responses @@ -27,3 +27,26 @@ end _When_ I run `rspec raises_and_then_returns.rb` _Then_ the examples should all pass. + +## Block arguments + +_Given_ a file named "yields_and_raises.rb" with: + +```ruby +RSpec.describe "when the method is called multiple times" do + it "yields and then later raises" do + dbl = double + allow(dbl).to receive(:foo).and_invoke( + proc { |&block| block.call("foo") }, + proc { raise "failure" } + ) + + dbl.foo { |yielded| expect(yielded).to eq("foo") } + expect { dbl.foo }.to raise_error("failure") + end +end +``` + +_When_ I run `rspec yields_and_raises.rb` + +_Then_ the examples should all pass.