aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-10 10:44:27 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-20 17:02:57 +0200
commit7bd845bb4ebcb0b5bff629f8f201e476d58b3a68 (patch)
treeae28134404214ae7bd19d7e8d26ed673a6688e34
parentCucumber with a login feature demonstrating cookies work (diff)
downloadcouncil-webapp-7bd845bb4ebcb0b5bff629f8f201e476d58b3a68.tar.gz
council-webapp-7bd845bb4ebcb0b5bff629f8f201e476d58b3a68.tar.bz2
council-webapp-7bd845bb4ebcb0b5bff629f8f201e476d58b3a68.zip
Cookie steps
Useful for problem finding
-rw-r--r--site/Gemfile1
-rw-r--r--site/Gemfile.lock2
-rw-r--r--site/features/step_definitions/cookie_steps.rb3
-rw-r--r--site/features/support/cookies.rb4
4 files changed, 10 insertions, 0 deletions
diff --git a/site/Gemfile b/site/Gemfile
index 33fb3f8..7a4edfc 100644
--- a/site/Gemfile
+++ b/site/Gemfile
@@ -11,6 +11,7 @@ group :development, :test do
gem 'capybara'
gem 'database_cleaner'
gem 'launchy'
+ gem 'show_me_the_cookies'
end
gem "hobo", ">= 1.3.0.pre28"
diff --git a/site/Gemfile.lock b/site/Gemfile.lock
index e80cd7d..b3ff31a 100644
--- a/site/Gemfile.lock
+++ b/site/Gemfile.lock
@@ -136,6 +136,7 @@ GEM
json_pure
rubyzip
shoulda (2.11.3)
+ show_me_the_cookies (0.2.1)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
sqlite3 (>= 1.3.3)
@@ -161,4 +162,5 @@ DEPENDENCIES
rspec-rails
ruby-debug
shoulda
+ show_me_the_cookies
sqlite3-ruby
diff --git a/site/features/step_definitions/cookie_steps.rb b/site/features/step_definitions/cookie_steps.rb
new file mode 100644
index 0000000..c682c1c
--- /dev/null
+++ b/site/features/step_definitions/cookie_steps.rb
@@ -0,0 +1,3 @@
+Then /^show me the cookies!$/ do
+ show_me_the_cookies
+end
diff --git a/site/features/support/cookies.rb b/site/features/support/cookies.rb
new file mode 100644
index 0000000..84f59b5
--- /dev/null
+++ b/site/features/support/cookies.rb
@@ -0,0 +1,4 @@
+World(ShowMeTheCookies)
+Before('@announce') do
+ @announce = true
+end