Permalink
Browse files

Adding the first stab at this project. May be some artifacts from my …

…workdon project clone
  • Loading branch information...
0 parents commit 84a39b48daf2fb6a8941c7c8da4d62305cfe3adf James Broad committed Jun 6, 2012
Showing with 135 additions and 0 deletions.
  1. BIN .DS_Store
  2. +10 −0 Gemfile
  3. +80 −0 Gemfile.lock
  4. 0 README.md
  5. +13 −0 Rakefile
  6. +11 −0 features/step_definitions/shared.rb
  7. +10 −0 features/support/env.rb
  8. +11 −0 features/users.feature
Binary file not shown.
@@ -0,0 +1,10 @@
+source :rubygems
+
+group :test do
+ gem "rake"
+ gem "cucumber"
+ gem "capybara"
+ gem "rspec"
+ gem "capybara-mechanize", "~> 0.3.0.rc2"
+ # gem "debugger"
+end
@@ -0,0 +1,80 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.8)
+ builder (3.0.0)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ capybara-mechanize (0.3.0)
+ capybara (~> 1.1)
+ mechanize (~> 2.3)
+ childprocess (0.3.2)
+ ffi (~> 1.0.6)
+ cucumber (1.2.0)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.3)
+ gherkin (~> 2.10.0)
+ json (>= 1.4.6)
+ diff-lcs (1.1.3)
+ domain_name (0.5.3)
+ unf (~> 0.0.3)
+ ffi (1.0.11)
+ gherkin (2.10.0)
+ json (>= 1.4.6)
+ json (1.7.3)
+ libwebsocket (0.1.3)
+ addressable
+ mechanize (2.5.1)
+ domain_name (~> 0.5, >= 0.5.1)
+ mime-types (~> 1.17, >= 1.17.2)
+ net-http-digest_auth (~> 1.1, >= 1.1.1)
+ net-http-persistent (~> 2.5, >= 2.5.2)
+ nokogiri (~> 1.4)
+ ntlm-http (~> 0.1, >= 0.1.1)
+ webrobots (~> 0.0, >= 0.0.9)
+ mime-types (1.18)
+ multi_json (1.3.6)
+ net-http-digest_auth (1.2.1)
+ net-http-persistent (2.6)
+ nokogiri (1.5.3)
+ ntlm-http (0.1.1)
+ rack (1.4.1)
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rake (0.9.2.2)
+ rspec (2.10.0)
+ rspec-core (~> 2.10.0)
+ rspec-expectations (~> 2.10.0)
+ rspec-mocks (~> 2.10.0)
+ rspec-core (2.10.1)
+ rspec-expectations (2.10.0)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.10.1)
+ rubyzip (0.9.8)
+ selenium-webdriver (2.22.2)
+ childprocess (>= 0.2.5)
+ ffi (~> 1.0)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
+ rubyzip
+ unf (0.0.5)
+ unf_ext
+ unf_ext (0.0.5)
+ webrobots (0.0.13)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ capybara
+ capybara-mechanize (~> 0.3.0.rc2)
+ cucumber
+ rake
+ rspec
No changes.
@@ -0,0 +1,13 @@
+task :default => [:test]
+task :test => "test:rb"
+task :test_dev => "test:dev"
+
+namespace :test do
+ desc "Run the features through Cucumber"
+ task :rb do
+ sh %{ cucumber -t ~@pending -f progress --no-snippets }
+ end
+ task :dev do
+ sh %{ cucumber -t ~@pending ENV=dev }
+ end
+end
@@ -0,0 +1,11 @@
+Given /^I am an authorised user$/ do
+ # TODO
+end
+
+When /^I visit "(.*?)"$/ do |url|
+ visit url
+end
+
+Then /^I should get the title "(.*?)"$/ do |title|
+ page.find('h1').text.should == title
+end
@@ -0,0 +1,10 @@
+require 'capybara/mechanize/cucumber'
+require 'capybara/cucumber'
+require 'rspec/expectations'
+# require 'debugger'
+
+Capybara.run_server = false
+Capybara.app_host = 'http://localhost:9000'
+Capybara.default_selector = :css
+
+Capybara.default_driver = :mechanize
@@ -0,0 +1,11 @@
+@pending
+Feature: Adding a card
+ As a third party developer
+ I want to be able to allow people to create custom cards based on my webapp
+
+ Background:
+ Given I am an authorised user
+
+ Scenario: Adding a user
+ When I visit "card/create"
+ Then I should get the title "Add a card"

0 comments on commit 84a39b4

Please sign in to comment.