Skip to content

Instantly share code, notes, and snippets.

@suciuvlad
suciuvlad / zsh
Created April 18, 2012 14:56 — forked from tonyjcamp/zsh
zsh Theme
# https://github.com/blinks zsh theme
function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "%{%F{blue}%}±%{%f%k%b%}"
else
echo ' '
fi
}
class Article < ActiveRecord::Base
has_one :publication, :as => :publicationable
accepts_nested_attributes_for :publication
end
@test
Feature: Viewing bulletins
In order to view the content on this website
As a visitor
I want to view bulletins
Background:
Given A Refinery user exists
Scenario: Listing all bulletins