-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e450ca7
commit 62f137c
Showing
5 changed files
with
23 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
Then /^we should know that the view with id "(.*?)" exists$/ do |with_this_id| | ||
Then /^we should know that the view with (\w+) "(.*?)" exists$/ do |how, what| | ||
on(ButtonScreen) do |screen| | ||
screen.should have_view(with_this_id) | ||
locator = {}; locator[how.to_sym] = what | ||
screen.should have_view(locator) | ||
end | ||
end | ||
|
||
Then /^we should know that the view with id "(.*?)" does not exist$/ do |with_this_id| | ||
Then /^we should know that the view with (\w+) "(.*?)" does not exist$/ do |how, what| | ||
on(ButtonScreen) do |screen| | ||
screen.should_not have_view(with_this_id) | ||
locator = {}; locator[how.to_sym] = what | ||
screen.should_not have_view(locator) | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters