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
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with(:truncation) | |
end | |
config.before(:each) do | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each, :js => true) do |
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
source 'https://rubygems.org' | |
ruby '2.2.1' | |
group :development, :test do | |
gem 'rspec-rails' | |
gem 'factory_girl_rails' | |
gem 'byebug' | |
gem 'ffaker' | |
gem 'dotenv-rails' |
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
# Check or uncheck checkboxes | |
check 'box-name' | |
uncheck 'box-name' | |
# Get cookies | |
Capybara.current_session.driver.request.cookies.[]('cookie-name') | |
# Click links and buttons | |
click_button 'button' # Only for buttons | |
click_link 'link' # Only for links |
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
javascript:var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); } |
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
// | |
// TFImageView.swift | |
// Lome | |
// | |
// Created by Tobias Feistmantl on 10/09/15. | |
// Copyright (c) 2015 Tobias Feistmantl. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
// | |
// TFTextField.swift | |
// TFTextField | |
// | |
// Created by Tobias Feistmantl on 07/09/15. | |
// Copyright (c) 2015 Tobias Feistmantl. All rights reserved. | |
// | |
import Foundation |
NewerOlder