spec/lib/never_bounce/api/session_spec.rb
def newo(attrs = {})
        request_klass = Class.new do
          def self.response_klass; Response::JobsParse; end
        end

        Class.new(described_class) do
          def server_obj; raise "This must never be called"; end
        end.new({
          request: request_klass.new,
          server_raw: "server_raw",
        }.merge(attrs))
      end
# A minimum viable instance for tests below.
A minimum viable instance for tests below.
A minimum viable instance for tests below .
def newo(attrs = {})
        request_klass = Class.new do
          def self.response_klass; Response::JobsParse; end
        end
        Class.new(described_class) do
          def server_obj; raise "This must never be called"; end
        end.new({
          request: request_klass.new,
          server_raw: "server_raw",
        }.merge(attrs))
      end
def newo ( attrs = { } ) request_klass = Class . new do def self . response_klass ; Response :: JobsParse ; end end Class . new ( described_class ) do def server_obj ; raise "This must never be called" ; end end . new ( { request : request_klass . new , server_raw : "server_raw" , } . merge ( attrs ) ) end
A minimum viable instance for tests below.
A minimum viable instance for tests below .
attrs