Skip to content
Browse files

add some matchers

  • Loading branch information...
1 parent 99b107d commit a0b3bf6ab2cba644ca1f8e23c24318db899d227e @thoughtless committed Nov 23, 2008
Showing with 28 additions and 1 deletion.
  1. +1 −1 .gitignore
  2. +14 −0 db/schema.rb
  3. +10 −0 features/step_definitions/navigation_steps.rb
  4. +3 −0 features/step_definitions/postie_steps.rb
View
2 .gitignore
@@ -1,3 +1,3 @@
log/*
tmp/*
-
+db/*.sqlite3
View
14 db/schema.rb
@@ -0,0 +1,14 @@
+# This file is auto-generated from the current state of the database. Instead of editing this file,
+# please use the migrations feature of Active Record to incrementally modify your database, and
+# then regenerate this schema definition.
+#
+# Note that this schema.rb definition is the authoritative source for your database schema. If you need
+# to create the application database on another system, you should be using db:schema:load, not running
+# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
+# you'll amass, the slower it'll run and the greater likelihood for issues).
+#
+# It's strongly recommended to check this file into your version control system.
+
+ActiveRecord::Schema.define(:version => 0) do
+
+end
View
10 features/step_definitions/navigation_steps.rb
@@ -0,0 +1,10 @@
+When /^I go to "(.*)"$/ do |page|
+ url = case page
+ when 'the home page'
+ '/'
+ else
+ page
+ end
+ visits url
+end
+
View
3 features/step_definitions/postie_steps.rb
@@ -0,0 +1,3 @@
+Given there are no posties do
+ Postie.destroy_all
+end

0 comments on commit a0b3bf6

Please sign in to comment.
Something went wrong with that request. Please try again.