Test Results

64 tests

AllFailingPassing

RGViperChatTests.AppDelegateInteractorSpec

0.005s

Is_user_logged_in__Asks_the_API_data_manager_if_the_user_is_logged_in

0.003s

Is_user_logged_in__API_data_manager_responds_with_false__Returns_false_if_the_api_data_manager_returns_with_false

0.002s

Is_user_logged_in__API_data_manager_responds_with_true__Returns_false_if_the_api_data_manager_returns_with_false

RGViperChatTests.AppDelegatePresenterSpec

0.002s

App_did_finish_launching_with_options__Asks_whether_the_user_is_logged_in_or_not

0.001s

App_did_finish_launching_with_options__User_is_logged_in__Launches_the_ChatList_module

0.001s

App_did_finish_launching_with_options__User_is_NOT_logged_in__Launches_the_ChatList_module

RGViperChatTests.AuthorizationInteractorSpec

0.002s

Login__Logs_in_against_the_API_data_manager

0.001s

Login__Logs_in_using_the_credentials_of_the_view

0.001s

Login__Login_was_successful__Responds_the_presenter_with_successful_login

RGViperChatTests.AuthorizationPresenterSpec

0.001s

Signup_button_tapped__Launches_the_Signup_module

0.002s

Login_button_tapped__Selects_the_login_use_case_on_the_interactor

0.001s

Login_button_tapped__Uses_the_same_credentiales_passed_from_he_view

0.001s

Successful_login__Launches_the_chat_list_module

RGViperChatTests.ChatInteractorSpec

0.002s

Send_message__Encrypts_the_message_using_the_encryption_service

0.001s

Send_message__Text_was_successfully_encrypted__Sends_the_message_using_the_API_data_manager__and_message_has_the_ecrypted_text

0.001s

Send_message__Text_was_successfully_encrypted__When_the_message_was_successfully_sent__Let_s_the_presenter_know_about_a_successful_message_sent

0.001s

Start_listening_incomming_messages__Starts_listening_incomming_messages_on_the_API_data_manager

0.001s

When_receives_a_message__Decrypts_the_message_text

0.002s

When_receives_a_message__When_the_text_was_successfully_decrypted__Let_s_the_presenter_know_that_a_message_arrived

0.001s

When_stops_listening_incomming_messages__Stops_listening_incoming_messages_from_the_API_data_manager

RGViperChatTests.ChatListInteractorSpec

0.001s

Fetch_chats__Fetches_the_users_from_the_API_data_manager

0.001s

Fetch_chats__Fech_was_correct__Responds_the_presenter_with_the_fetched_chats

0.001s

Logout__Logs_out_using_the_API_data_manager

0.001s

Logout__User_logged_out_from_API_data_manager__Responds_with_true

0.001s

Logout__User_NOT_logged_out_from_API_data_manager__Responds_with_false

0.001s

When_starts_listening_for_new_chats__Starts_listening_for_new_chats_on_the_API_data_manager

0.001s

When_a_chat_is_added__Lets_the_presenter_now_about_the_new_chat

RGViperChatTests.ChatListPresenterSpec

0.001s

View_loaded__Fetches_chat_from_the_interactor

0.001s

View_loaded__Starts_listening_for_new_chats_on_the_interactor

0.001s

Empty_chat_list_fetched__Shows_the_empty_screen

0.001s

Non_empty_chat_list_fetched__Shows_the_chats

0.001s

Create_chat__Launches_the_create_chat_module

0.001s

Logout__Selects_the_logout_use_case_on_the_interactor

0.001s

Logout__User_successfully_logged_out__Launches_the_Authorization_module

0.001s

Chat_selected__Launches_the_chat_module

0.001s

When_a_chat_is_added__Adds_the_chat_to_the_view

RGViperChatTests.ChatPresenterSpec

0.001s

Send_message__Sends_a_message_using_the_interactor

0.001s

When_the_view_gets_loaded__Selects_the_start_listening_incoming_messages_use_case_on_the_interactor

0.001s

When_a_message_is_received__Should_add_it_to_the_view

0.001s

When_the_back_button_is_tapped__Should_stop_listening_for_incoming_messages

0.001s

When_the_back_button_is_tapped__Should_dismiss_the_module

0.001s

When_a_message_was_successfully_sent__Finishes_sending_the_message

0.001s

When_a_message_was_successfully_sent__Plays_a_sent_sound

RGViperChatTests.CreateChatInteractorSpec

0.002s

Fetch_users__Fetches_the_users_from_the_API_data_manager

0.001s

Fetch_users__User_fetching_was_OK__Responds_the_presenter_with_the_fetched_users

0.001s

Create_chat__Creates_the_chat_using_API_data_manager

0.001s

Create_chat__Chat_successfully_created__Responds_the_presenter_with_chat_successfully_created

RGViperChatTests.CreateChatPresenterSpec

0.001s

Cancel__Dismisses_the_module

0.001s

View_was_loaded__Selects_the_fetchUsers_use_case_on_the_interactor

0.001s

Users_fetched_not_empty__Maps_the_users_into_a_UserDisplayData_object

0.001s

Users_fetched_not_empty__Asks_the_view_to_show_the_users_display_data

0.001s

User_selected__Selects_the_create_chat_use_case_on_the_interactor_with_a_user_of_type_User

0.001s

User_selected__The_username_of_the_user_is_the_same_as_taken_from_the_view

RGViperChatTests.RGViperChatTests

0.000s

testExample

0.342s

testPerformanceExample

RGViperChatTests.SignupInteractorSpec

0.002s

Sign_up__Calls_the_sigup_method_on_the_API_data_manager

0.001s

Sign_up__Sign_up_was_OK__Responds_the_presenter_with_successful_signup

RGViperChatTests.SignupPresenterSpec

0.001s

User_signup__Selects_the_signup_use_case_on_the_interactor

0.001s

User_signup__Signs_up_with_the_credentials_received_from_the_view

0.001s

User_signup__User_signup_successfully__Dismisses_current_module

0.001s

User_signup__User_signup_successfully__Launches_the_chat_list_module_when_the_module_is_dismissed

RGViperChatTests.UsersDisplayDataMapperSpec

0.001s

Map_users_into_users_display_data__Generates_2_user_data_items

0.001s

Map_users_into_users_display_data__Contains_a_user_data_item_with_username_Roberto1

0.001s

Map_users_into_users_display_data__Contains_a_user_data_item_with_username_Roberto2