This file contains hidden or 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
| # Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations? | |
| describe 'Modal' do | |
| should 'display login errors' do | |
| visit root_path | |
| click_link 'My HomeMarks' | |
| within '#login_area' do | |
| fill_in 'email', with: 'will@not.work' | |
| fill_in 'password', with: 'test' |
This file contains hidden or 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
| es: | |
| errors: | |
| messages: | |
| not_found: 'no encontrado' | |
| already_confirmed: 'ya ha sido confirmada' | |
| not_locked: 'no está bloqueada' | |
| expired: "ha caducado, por favor pide uno nuevo" | |
| not_saved: | |
| one: "1 error evitó guardar este %{resource}:" | |
| other: "%{count} errores evitaron guardar este %{resource}:" |
This file contains hidden or 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
| # Add your own tasks in files placed in lib/tasks ending in .rake, | |
| # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
| require File.expand_path('../config/application', __FILE__) | |
| require 'rake' | |
| require 'whiskey_disk/rake' | |
| require 'resque/tasks' | |
| Haystack::Application.load_tasks |
This file contains hidden or 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
| # env.rb | |
| Capybara.register_driver :selenium do |app| | |
| Capybara::Selenium::Driver.new(app, :browser => :chrome) | |
| end | |
| Download chromedriver from http://code.google.com/p/selenium/downloads/list | |
| mv chromedriver to /usr/local/bin so it's in your path. |
This file contains hidden or 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
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| end |
This file contains hidden or 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
| # Gemfile | |
| … | |
| gem 'uuidtools' | |
| … |
This file contains hidden or 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
| #!/bin/sh | |
| POSTGISCONTRIB_PATH=`pg_config --sharedir`/contrib | |
| POSTGIS=$(find $POSTGISCONTRIB_PATH -name 'postgis.sql') | |
| POSTGIS_COMMENTS=$(find $POSTGISCONTRIB_PATH -name 'postgis_comments.sql') | |
| POSTGIS_SPATIAL=$(find $POSTGISCONTRIB_PATH -name 'spatial_ref_sys.sql') | |
| if [ -z "$POSTGIS" ] || [ -z "$POSTGIS_SPATIAL" ]; then | |
| echo " * Not found postgis contrib files." | |
| exit 1 |
NewerOlder