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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
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
# app/helpers/forms_helper.rb | |
module FormsHelper | |
# A custom FormBuilder class for Rails forms with Twitter Bootstrap 3 | |
class CustomFormBuilder < ActionView::Helpers::FormBuilder | |
# ActionView::Helpers::FormHelper and ActionView::Helpers::FormBuilder | |
# methods each have different args. This hash stores the names of the args | |
# and the methods that have those args in order to DRY up the method aliases | |
# defined below. |
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
#import <AddressBook/AddressBook.h> | |
#import <Accounts/Accounts.h> | |
#import <Social/Social.h> | |
@interface ContactsDiscovery() | |
@property (nonatomic, retain) ACAccountStore* accounts; | |
@property (nonatomic, retain) ACAccountType* faceBookAccountType; | |
@property (nonatomic, retain) ACAccount* faceBookAccount; | |
@property (nonatomic, retain) id addressBook; | |
@end |