Sha256: 539d5ab37d26d35fd2e88326d0db5d3acef76f413bbac757d4243f8d35bf44d4

Contents?: true

Size: 393 Bytes

Versions: 11

Compression:

Stored size: 393 Bytes

Contents

# @private
module Evil::Client::RSpec
  #
  # Container to chain settings for allowing operation(s)
  #
  class ExpectStub < BaseStub
    def to_have_been_performed
      expect(Evil::Client::Container::Operation)
        .to have_received(:new)
        .with evil_client_schema_matching(@klass, @name),
              *any_args, # logger
              @condition || anything
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
evil-client-3.2.0 lib/evil/client/rspec/expect_stub.rb
evil-client-3.1.0 lib/evil/client/rspec/expect_stub.rb
evil-client-3.0.4 lib/evil/client/rspec/expect_stub.rb
evil-client-3.0.3 lib/evil/client/rspec/expect_stub.rb
evil-client-3.0.2 lib/evil/client/rspec/expect_stub.rb
evil-client-3.0.1 lib/evil/client/rspec/expect_stub.rb
evil-client-3.0.0 lib/evil/client/rspec/expect_stub.rb
evil-client-2.1.1 lib/evil/client/rspec/expect_stub.rb
evil-client-2.1.0 lib/evil/client/rspec/expect_stub.rb
evil-client-2.0.0 lib/evil/client/rspec/expect_stub.rb
evil-client-1.1.0 lib/evil/client/rspec/expect_stub.rb