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
Testing |
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
$ cucumber | |
Using the default profile... | |
F---F | |
Failing Scenarios: | |
cucumber features/autocomplete.feature:7 # Scenario: Autocomplete | |
1 scenario (1 failed) | |
3 steps (3 skipped) | |
0m0.006s |
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
%ul{:class => "sizes #{product_attribute.name.downcase}"} | |
-if product_attribute.name == "Width" | |
-values= product_attribute.values.sort{|x,y| x.id <=> y.id} | |
-attname='Shoe Witdh' | |
-objname="product[value_ids][#{product_attribute.solr_name}][]" | |
-elsif product_attribute.name == "Youth Shoe Sizes" | |
-values= Value.shoe_sizes | |
-attname='Shoe Sizes' | |
-objname="product[value_ids][shoe_sizes][]" | |
%b |
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
<?php | |
require_once( 'core.php' ); | |
$t_core_path = config_get( 'core_path' ); | |
require_once( $t_core_path . 'filter_api.php' ); | |
require_once( $t_core_path . 'csv_api.php' ); | |
require_once( $t_core_path . 'columns_api.php' ); | |
?> | |
<?php auth_attempt_script_login('$MANTIS_USER', '$MANTIS_PASSWORD') ?> |
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
/* | |
* Unobtrusive autocomplete | |
* | |
* To use it, you just have to include the HTML attribute autocomplete | |
* with the autocomplete URL as the value | |
* | |
* Example: | |
* <input type="text" data-autocomplete="/url/to/autocomplete"> | |
* | |
* Optionally, you can use a jQuery selector to specify a field that can |
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
def magic_form(*resources) | |
options = resources.extract_options! | |
resource = resources.last | |
attributes = resource.attribute_names - [:created_at, :updated_at] | |
form_for(resource) do |f| | |
attributes.each do |attribute| | |
concat(f.label(attribute, (options[attribute.to_sym] || attribute))) | |
concat(f.text_field(attribute)) | |
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
# let's say you have an Account model with first name and last name as its fields. | |
# | |
# I would put a method that returns both names like so: | |
# | |
class Account < ActiveRecord::Base | |
def full_name | |
"#{self.first_name} #{self.last_name}" | |
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
RSpec.configure do |config| | |
config.before :each do | |
Rails.logger.info "======= START #{self.example.metadata[:full_description]}" | |
end | |
config.after :each do | |
Rails.logger.info "======= END #{self.example.metadata[:full_description]}" | |
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
Failures: | |
1) Story Comments Add a comment | |
Failure/Error: fill_in 'comment_comment', with: comment_attributes[:comment] | |
Selenium::WebDriver::Error::ElementNotDisplayedError: | |
Element is not currently visible and so may not be interacted with | |
# [remote server] resource://fxdriver/modules/atoms.js:9366:in `unknown' | |
# [remote server] file:///var/folders/rm/rmL2xLThHji-vMq1vxRgOE+++TI/-Tmp-/webdriver-profile20110412-53543-1jabr95/extensions/[email protected]/components/nsCommandProcessor.js:256:in `unknown' | |
# [remote server] file:///var/folders/rm/rmL2xLThHji-vMq1vxRgOE+++TI/-Tmp-/webdriver-profile20110412-53543-1jabr95/extensions/[email protected]/components/nsCommandProcessor.js:305:in `unknown' | |
# [remote server] file:///var/folders/rm/rmL2xLThHji-vMq1vxRgOE+++TI/-Tmp-/webdriver-profile20110412-53543-1jabr95/extensions/[email protected]/components/nsCommandProcessor.js:320:in `unknown' |
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
activerecord: | |
errors: | |
messages: | |
blank: "No puede ser vacio" |
OlderNewer