Skip to content

Commit

Permalink
cucumber post
Browse files Browse the repository at this point in the history
  • Loading branch information
BugRoger committed Mar 11, 2012
1 parent 077ef39 commit b2782bf
Show file tree
Hide file tree
Showing 14 changed files with 100 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ source/_stash
source/stylesheets/screen.css source/stylesheets/screen.css
vendor vendor
node_modules node_modules
tmp
20 changes: 10 additions & 10 deletions _config.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Main Configs # # Main Configs #
# ----------------------- # # ----------------------- #


url: http://BugRoger.github.com url: http://bugroger.github.com
title: My Octopress Blog title: Brainwidth Exceeded
subtitle: A blogging framework for hackers. subtitle: "Michael Schmidt"
author: Your Name author: Michael Schmidt
simple_search: http://google.com/search simple_search: http://google.com/search
description: description:


Expand Down Expand Up @@ -58,14 +58,14 @@ default_asides: [asides/recent_posts.html, asides/github.html, asides/twitter.ht
# ----------------------- # # ----------------------- #


# Github repositories # Github repositories
github_user: github_user:
github_repo_count: 0 github_repo_count:
github_show_profile_link: true github_show_profile_link: true
github_skip_forks: true github_skip_forks: true


# Twitter # Twitter
twitter_user: twitter_user:
twitter_tweet_count: 4 twitter_tweet_count: 0
twitter_show_replies: false twitter_show_replies: false
twitter_follow_button: true twitter_follow_button: true
twitter_show_follower_count: false twitter_show_follower_count: false
Expand All @@ -81,19 +81,19 @@ googleplus_user:
googleplus_hidden: false googleplus_hidden: false


# Pinboard # Pinboard
pinboard_user: pinboard_user:
pinboard_count: 3 pinboard_count: 3


# Delicious # Delicious
delicious_user: delicious_user:
delicious_count: 3 delicious_count: 3


# Disqus Comments # Disqus Comments
disqus_short_name: disqus_short_name: BugRoger
disqus_show_comment_count: false disqus_show_comment_count: false


# Google Analytics # Google Analytics
google_analytics_tracking_id: google_analytics_tracking_id:


# Facebook Like # Facebook Like
facebook_like: false facebook_like: false
1 change: 1 addition & 0 deletions sass/base/_layout.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ body.sidebar-footer {
body { -webkit-text-size-adjust: auto; } body { -webkit-text-size-adjust: auto; }
body > header { font-size: $header-font-size * 1.2; } body > header { font-size: $header-font-size * 1.2; }
#main { #main {
@include box-shadow(#222 0px 0px 40px);
@extend .group; @extend .group;
padding: 0; padding: 0;
margin: 0 auto; margin: 0 auto;
Expand Down
8 changes: 4 additions & 4 deletions sass/base/_theme.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ $link-color-active: adjust-color($link-color-hover, $lightness: -15) !default;


// Main Section Colors // Main Section Colors
$main-bg: #f8f8f8 !default; $main-bg: #f8f8f8 !default;
$page-bg: #252525 !default; $page-bg: #999 !default;
$article-border: #eeeeee !default; $article-border: #eeeeee !default;


$header-bg: #333 !default; $header-bg: #111 !default;
$header-border: lighten($header-bg, 15) !default; $header-border: lighten($header-bg, 15) !default;
$title-color: #f2f2f2 !default; $title-color: #ddd !default;
$subtitle-color: #aaa !default; $subtitle-color: #aaa !default;


$text-color: #222 !default; $text-color: #222 !default;
Expand Down Expand Up @@ -72,7 +72,7 @@ a {
} }


html { html {
background: $page-bg image-url('line-tile.png') top left; background: $page-bg image-url('fake_header.png') top left repeat-x;
} }
body { body {
> div { > div {
Expand Down
2 changes: 2 additions & 0 deletions sass/base/_typography.scss
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url(http://fonts.googleapis.com/css?family=Leckerli+One);

$blockquote: $type-border !default; $blockquote: $type-border !default;
$sans: "PT Sans", "Helvetica Neue", Arial, sans-serif !default; $sans: "PT Sans", "Helvetica Neue", Arial, sans-serif !default;
$serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default; $serif: "PT Serif", Georgia, Times, "Times New Roman", serif !default;
Expand Down
2 changes: 1 addition & 1 deletion sass/custom/_colors.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// To give it a try, uncomment some of the lines below rebuild your blog, and see how it works. // To give it a try, uncomment some of the lines below rebuild your blog, and see how it works.
// If you need a handy color picker try http://hslpicker.com // If you need a handy color picker try http://hslpicker.com


//$header-bg: #263347; //$header-bg: #171612;
//$subtitle-color: lighten($header-bg, 58); //$subtitle-color: lighten($header-bg, 58);
//$nav-bg: desaturate(lighten(#8fc17a, 18), 5); //$nav-bg: desaturate(lighten(#8fc17a, 18), 5);
//$nav-bg-front: image-url('noise.png'); //$nav-bg-front: image-url('noise.png');
Expand Down
8 changes: 4 additions & 4 deletions sass/custom/_fonts.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


//$sans: "Optima", sans-serif; //$sans: "Optima", sans-serif;
//$serif: "Baskerville", serif; //$serif: "Baskerville", serif;
//$mono: "Courier", monospace; $mono: "Menlo", "Courier", monospace;
//$heading-font-family: "Verdana", sans-serif; $heading-font-family: 'Squada One', "Verdana", sans-serif;
//$header-title-font-family: "Futura", sans-serif; $header-title-font-family: 'Squada One', "Futura", sans-serif;
//$header-subtitle-font-family: "Futura", sans-serif; $header-subtitle-font-family: 'Squada One', "Futura", sans-serif;
5 changes: 4 additions & 1 deletion sass/partials/_header.scss
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,8 @@
body > header { body > header {
background: $header-bg; hgroup {
display: inline-block;
text-align: right;
}
h1 { h1 {
display: inline-block; display: inline-block;
margin: 0; margin: 0;
Expand Down
2 changes: 2 additions & 0 deletions source/_includes/custom/head.html
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,5 @@
<!--Fonts from Google"s Web font directory at http://google.com/webfonts --> <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Squada+One' rel='stylesheet' type='text/css'>

1 change: 1 addition & 0 deletions source/_layouts/default.html
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %} {% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
{% include head.html %} {% include head.html %}
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %} {% if page.sidebar == 'collapse' or site.sidebar == 'collapse' %} class="collapse-sidebar sidebar-footer" {% endif %}> <body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %} {% if page.sidebar == 'collapse' or site.sidebar == 'collapse' %} class="collapse-sidebar sidebar-footer" {% endif %}>
<banner></banner>
<header role="banner">{% include header.html %}</header> <header role="banner">{% include header.html %}</header>
<nav role="navigation">{% include navigation.html %}</nav> <nav role="navigation">{% include navigation.html %}</nav>
<div id="main"> <div id="main">
Expand Down
39 changes: 39 additions & 0 deletions source/_posts/2012-03-08-world-domination.markdown
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,39 @@
---
layout: post
title: "World Domination"
date: 2012-03-08 22:15
comments: true
categories: [geek]
---

```
$ sudo make me a sandwich
```

``` ruby Discover if a number is prime http://www.noulakaz.net/weblog/2007/03/18/a-regular-expression-to-check-for-prime-numbers/ Source Article
class Fixnum
def prime?
('1' * self) !~ /^1?$|^(11+?)\1+$/
end
end
```

{% gist 996818 %}
{% gist 1262397 %}

*wat?*

Some of these words *are emphasized*.
Some of these words _are emphasized also_.

Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.

* Candy.
* Gum.
* Booze.

I strongly recommend against using any `<blink>` tags.

Hi Esther!

Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,31 @@
---
layout: post
title: "Making FakeFS and Cucumber Play Nice"
date: 2012-03-11 11:52
comments: true
categories: ruby bdd cucumber
---

As it turns out just requiring the fakefs gem doesn't play nice with Cucumber. The fakefs confuses Cucumber pretty well and it can't find its own steps anymore.

There's a simple solution using cucumber hooks. In `features/support/env.rb` add the following tag specific hooks:

```
require 'fakefs/safe'
Before('fakefs') do
FakeFS.activate!
end
After('fakefs') do
FakeFS::FileSystem.clear
FakeFS.deactivate!
end
```

Afterwards it's possible to activate FakeFS selectively on a feature or scenario basis:

```
@fakefs
Scenario: Create Symlinks
```
Binary file added source/images/fake_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/paperbg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b2782bf

Please sign in to comment.