Skip to content

Instantly share code, notes, and snippets.

View mikew's full-sized avatar

mikew mikew

  • 709scene
  • St. John's, Newfoundland
View GitHub Profile
@mikew
mikew / recipe.sh
Last active December 11, 2015 08:58 — forked from okossuth/mechanize for kivy
#!/bin/bash
VERSION_mechanize=
URL_mechanize=http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz
MD5_mechanize=
BUILD_mechanize=$BUILD_PATH/mechanize/$(get_directory $URL_mechanize)
RECIPE_mechanize=$RECIPES_PATH/mechanize
function prebuild_mechanize() {
true
# shoulda validation that a partial has been rendered by a view
class Test::Unit::TestCase
def self.should_render_partial(partial)
should "render partial #{partial.inspect}" do
# add the underscore. it's expected anyways
assert_template :partial => partial.to_s.sub(/\/(\w+)$/, '/_\1')
end
end