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
Refraction.configure do |req| | |
Rails.logger.debug "Path: #{"#{req.path}#{"?" unless req.query.blank?}#{req.query}"}" | |
request_string = "#{req.path}#{"?" unless req.query.blank?}#{req.query}" | |
domain_redirects = { | |
"www.wwf-adopt-an-animal.org" => "www.wwf-animal-adoptions.org.uk", | |
"wwf-adopt-an-animal.org" => "www.wwf-animal-adoptions.org.uk" | |
} |
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
#featured-slider | |
%ul.ui-tabs-nav | |
%li#nav-fragment-1.ui-tabs-nav-item.ui-tabs-selected | |
%a{ :href => "#fragment-1" } | |
%img{ :src => "http://www.donation4charity.org/blog/images1/image1-small.jpg", :alt => "" } | |
%span | |
Adopt an Animal from just £3 a month | |
%li#nav-fragment-2.ui-tabs-nav-item | |
%a{ :href => "#fragment-2" } |
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
Feature: viewing lists | |
As a guest | |
I want to view lists | |
So that I can see the value of boxedup lists and want to sign up | |
Background: | |
Given a user: "Winnie" exists with name: "Winnie the Pooh", email: "[email protected]", password: "password", email_confirmed: true | |
And a list: "public list" exists with name: "Public List", user: user "Winnie", privacy: "public" | |
And a list: "friends list" exists with name: "Friends List", user: user "Winnie", privacy: "friends" | |
And a list: "private list" exists with name: "Private List", user: user "Winnie", privacy: "private" |
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
ENV["WATCHR"] = "1" | |
system 'clear' | |
def growl(message) | |
growlnotify = `which growlnotify`.chomp | |
title = "Watchr Test Results" | |
image = message.include?('0 failures, 0 errors') ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png" | |
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'" | |
system %(#{growlnotify} #{options} &) | |
end |