Skip to content
Browse files

Add get method to store

We add a get() method. We just need it to return a String to compile. Rather than returning an empty string, we return an obviously-fake string. That way we can more easily tell what's going on if we get that string returned later when we don't expect it.

Now the MessageStore compiles, but our feature test is still failing with the same error: the message isn't appearing on screen. We need to actually get the MessageStore to _do_ something.

Red: NoMatchingElementException. accessibilityLabel('New message')
  • Loading branch information...
CodingItWrong committed Jan 2, 2018
1 parent 7314ddf commit 709ebc3818c2418533ad31a60aed8cb2694197fe
Showing with 4 additions and 0 deletions.
  1. +4 −0 LearnTDDInCocoaTouch/MessageStore.swift
@@ -8,4 +8,8 @@ class MessageStore {


func get(_ index: Int) -> String {
return "fake message"


0 comments on commit 709ebc3

Please sign in to comment.
You can’t perform that action at this time.