Module: RXCode::Spec::NSErrorHelpers

Included in:
RSpec::Core::ExampleGroup
Defined in:
lib/rxcode/spec/nserror_helpers.rb

Instance Method Summary collapse

Instance Method Details

#check_error_ptr!Object



10
11
12
13
14
# File 'lib/rxcode/spec/nserror_helpers.rb', line 10

def check_error_ptr!
  unless error_ptr[0].nil?
    fail error_ptr[0].localizedDescription
  end
end

#error_ptrObject



6
7
8
# File 'lib/rxcode/spec/nserror_helpers.rb', line 6

def error_ptr
  @error_ptr ||= Pointer.new(:object)
end