Creating method check_pending in module RSpec