Skip to content

Instantly share code, notes, and snippets.

@moonmaster9000
Created October 27, 2011 14:03
Show Gist options
  • Save moonmaster9000/1319622 to your computer and use it in GitHub Desktop.
Save moonmaster9000/1319622 to your computer and use it in GitHub Desktop.
spinach """ support
#
# Feature: Test How Spinach Works
#
# Scenario: Test triple equals
# Given I have an empty array:
# """
# @array = []
# """
#
# Then it should be empty:
# """
# @array.should be_empty
# """
class TestHowSpinachWorks < Spinach::FeatureSteps
Given 'I have an empty array:' do
eval definition if definition?
end
Then 'it should be empty:' do
eval definition if definition?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment