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
Scenario: International Lead | |
#Given I am on the home page | |
#When I follow "International" within the footer | |
#Then I should be on the international page | |
Given I am on the international page | |
When I follow "Germany" | |
Then I should be on the "Germany" international directory page | |
And the spam-protected "Country" field should contain "Germany" | |
When I fill out the spam-protected form within the "main body" section following these instructions: | |
| action | name | value | |
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
module ContentUI | |
module Presenters | |
class Short < ContentUI::Presenters::Base | |
def render_body | |
@template.content_tag :div, :class => "float_left" do | |
@form.text_field @template.content_field_name(self), "data-max-chars" => self.max_length | |
end | |
end | |
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
.large_break | |
.two_col_left | |
-form_for @template_group, :url => template_group_form_url, :method => template_group_form_method do |f| | |
%fieldset#template_group | |
%legend Template Groupd Details | |
=f.label :name | |
=f.text_field :name | |
%br |
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
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
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
class LocationData::Profiles < ActiveResource::Base | |
self.schema = Front::PROFILE_SCHEMA | |
def method_missing(name, *args, &block) | |
super(name, *args, &block) | |
rescue NoMethodError, NameError => e | |
if name.to_s =~ /^(?:county|state|provincial)_profiles$/ | |
[] | |
else | |
raise e |
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
Failures: | |
1) CanCan::ModelAdapters::ActiveRecordAdapter should fetch only associated records when using with a scope for conditions | |
Failure/Error: category1.articles.accessible_by(@ability).should == [article1] | |
expected: [#<Article id: 1, name: nil, published: nil, secret: true, priority: nil, category_id: 1>], | |
got: [] (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-[#<Article id: 1, name: nil, published: nil, secret: true, priority: nil, category_id: 1>] | |
+[] | |
# ./spec/cancan/model_adapters/active_record_adapter_spec.rb:139 |
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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" |
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
# Language settings | |
Include /private/etc/apache2/extra/httpd-languages.conf | |
# User home directories | |
Include /private/etc/apache2/extra/httpd-userdir.conf | |
# Real-time info on requests and configuration | |
#Include /private/etc/apache2/extra/httpd-info.conf | |
# Virtual hosts |
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
namespace :locations do | |
desc 'Update the population field of all city locations with the help of a csv file' | |
task :populate_cities, :pop_file, :no_match_file, :needs => :environment do | t , args | | |
raise "Please send a valid CSV File, example: rake locations:populate_cities[pathCVSFile,noMatchFilePath*]" if args[:pop_file].nil? | |
csv_file = args[:pop_file] | |
unmatch_file = args[:no_match_file] || "no_match_location.csv" |
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
namespace :pinow do | |
desc 'Update the population field of all city locations with the help of a csv file' | |
task :populate_cities => :environment do | |
require 'fastercsv' | |
#constants | |
CODE = 0 | |
NAME = 5 | |
STATE_NAME = 6 |