From ced45cd416236432935eea2b1f526b4659c58ef6 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Wed, 1 Jun 2016 05:10:12 +0000 Subject: [PATCH] start cucumber features --- Gemfile | 5 +++++ Gemfile.lock | 33 +++++++++++++++++++++++++++++++++ config/database.yml | 3 +++ 3 files changed, 41 insertions(+) diff --git a/Gemfile b/Gemfile index e7e4065..285cf75 100644 --- a/Gemfile +++ b/Gemfile @@ -66,3 +66,8 @@ group :development, :production do gem 'capistrano-rails', '~> 1.1' gem 'capistrano3-puma', github: "seuros/capistrano-puma" end + +group :test do + gem 'cucumber-rails', require: false + gem 'database_cleaner' +end \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 26561e3..7a25fb4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -71,6 +71,7 @@ GEM i18n (~> 0.7) minitest (~> 5.1) tzinfo (~> 1.1) + addressable (2.4.0) airbrussh (1.0.1) sshkit (>= 1.6.1, != 1.7.0) annotate (2.7.1) @@ -104,6 +105,13 @@ GEM capistrano-rbenv (2.0.4) capistrano (~> 3.1) sshkit (~> 1.3) + capybara (2.7.1) + addressable + mime-types (>= 1.16) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) chronic (0.10.2) coffee-rails (4.1.1) coffee-script (>= 2.2.0) @@ -113,7 +121,25 @@ GEM execjs coffee-script-source (1.10.0) concurrent-ruby (1.0.2) + cucumber (2.3.3) + builder (>= 2.1.2) + cucumber-core (~> 1.4.0) + cucumber-wire (~> 0.0.1) + diff-lcs (>= 1.1.3) + gherkin (~> 3.2.0) + multi_json (>= 1.7.5, < 2.0) + multi_test (>= 0.1.2) + cucumber-core (1.4.0) + gherkin (~> 3.2.0) + cucumber-rails (1.4.3) + capybara (>= 1.1.2, < 3) + cucumber (>= 1.3.8, < 3) + mime-types (>= 1.16, < 4) + nokogiri (~> 1.5) + railties (>= 3, < 5) + cucumber-wire (0.0.1) daemons (1.2.3) + database_cleaner (1.5.3) datetime_picker_rails (0.0.7) momentjs-rails (>= 2.8.1) debug_inspector (0.0.2) @@ -129,6 +155,7 @@ GEM responders warden (~> 1.2.3) devise-i18n (1.0.1) + diff-lcs (1.2.5) erubis (2.7.0) execjs (2.6.0) faraday (0.9.2) @@ -143,6 +170,7 @@ GEM ffi (1.9.10) figaro (1.1.1) thor (~> 0.14) + gherkin (3.2.0) globalid (0.3.6) activesupport (>= 4.1.0) httparty (0.13.7) @@ -180,6 +208,7 @@ GEM momentjs-rails (2.11.1) railties (>= 3.1) multi_json (1.12.0) + multi_test (0.1.2) multi_xml (0.5.5) multipart-post (2.0.0) neat (1.7.4) @@ -292,6 +321,8 @@ GEM websocket-extensions (0.1.2) whenever (0.9.4) chronic (>= 0.6.3) + xpath (2.0.0) + nokogiri (~> 1.3) yt (0.25.35) activesupport @@ -309,8 +340,10 @@ DEPENDENCIES capistrano-rbenv capistrano3-puma! coffee-rails (~> 4.1.0) + cucumber-rails daemons data-confirm-modal! + database_cleaner delayed_job_active_record devise devise-i18n diff --git a/config/database.yml b/config/database.yml index 3c6820b..2bc5b44 100644 --- a/config/database.yml +++ b/config/database.yml @@ -23,3 +23,6 @@ production: host: <%= ENV['DATABASE_HOST'] %> username: <%= ENV['DATABASE_USERNAME'] %> password: <%= ENV['DATABASE_PASSWORD'] %> + +cucumber: + <<: *test