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
before do | |
@store ||= Factory(:capybara_store, :depot => true) | |
@order ||= Factory(:order, :state => "processed", :store_id => @store.id, :shipping_address_id => user.default_address.id, :user => user) | |
<<<<<<< HEAD | |
@item ||=Factory(:rental_item, :order => @order, :created_at => 32.days.ago, :from => 32.days.ago, :source_status => 'shipped') | |
login(user) | |
======= | |
@rental_item ||= Factory(:rental_item, :order => @order, :created_at => 32.days.ago, :from => 32.days.ago, :source_status => 'shipped') | |
>>>>>>> 6450894835d13bbca6b80cb5811f7099d4857a29 | |
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
/* | |
Syntax error: File to import not found or unreadable: partials/base. | |
Load paths: | |
Compass::SpriteImporter | |
/Users/ntreadway/rentwb/public/stylesheets/sass | |
/Users/ntreadway/rentwb/app/assets/stylesheets | |
/Users/ntreadway/.rbenv/versions/1.8.7-p352/lib/ruby/gems/1.8/bundler/gems/compass-520df2b17331/frameworks/blueprint/stylesheets | |
/Users/ntreadway/.rbenv/versions/1.8.7-p352/lib/ruby/gems/1.8/bundler/gems/compass-520df2b17331/frameworks/compass/stylesheets | |
on line 7 of /Users/ntreadway/rentwb/app/assets/stylesheets/front_facing.css.scss |
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
$(document).ready -> | |
unless $.browser.opera | |
$("select.option_id").each -> | |
title = $(this).attr("title") | |
title = $("option:selected", this).text() unless $("option:selected", this).val() is "" | |
$(this).css( | |
"z-index": 10 | |
opacity: 0 | |
"-khtml-appearance": "none" | |
).after("<span class=\"select\">" + title + "</span>").change -> |
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
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Your Sick Page</title> | |
<meta name="description" content=""> |
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
# Used to dynamically add a rails page view when using Jquery Mobile | |
# Author Nick Treadway @nicktea | |
@insert_page = (id, content) -> | |
page = $("<article id="+id+" data-role='page' data-url="+id+" data-add-back-btn='true'>" + content + "</article>") | |
page.appendTo('body') | |
$('a' + '#' + id).click -> | |
$.mobile.changePage(page, {transition: "slide"}) | |
# Use (your-view.haml) |
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 set_mobile_agent | |
page.driver.header('User-Agent', 'iPhone') | |
end | |
def js_click(selector) | |
page.driver.execute_script "$('##{selector}').click()" | |
end | |
def screenshot | |
require 'capybara/util/save_and_open_page' |
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
<% if Rails.env.development? %> | |
@onLoadFailed = (event, data) -> | |
text = data.xhr.responseText | |
newHtml = text.split(/<\/?html[^>]*>/g)[1] | |
$("html").html newHtml | |
$(document).on "pageloadfailed", onLoadFailed | |
<% 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
source :rubygems | |
gem 'rake' | |
gem 'rack' | |
gem 'rack-rewrite' | |
gem 'thin' | |
gem 'sprockets', '2.2.0' | |
gem 'sass' | |
gem 'coffee-script' |
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
// Mobile | |
@mixin kill-mobile-zoom { | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: none; | |
} | |
@mixin kill-tap-highlight { | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} |
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
@mixin show-it { | |
height: auto; | |
visibility: visible; | |
@include opacity(1); // Compass mixin | |
} | |
@mixin hide-it { | |
position: absolute; | |
-webkit-transform: translate3d(-9999rem,0,0); | |
-moz-transform: translate3d(-9999rem,0,0); |