-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
100 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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'> | |||
|
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
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
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! | |||
|
31 changes: 31 additions & 0 deletions
31
source/_posts/2012-03-11-making-fakefs-and-cucumber-play-nice.markdown
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
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 | |||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.