From 1857c6ae39026b1dc6af517baa8da46bb8e118af Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 27 Aug 2014 14:22:20 -0500 Subject: [PATCH] Add aruba MSP-11153 aruba adds steps for testing commandline applications with cucumber. --- Gemfile | 2 ++ Gemfile.lock | 8 ++++++++ features/support/env.rb | 1 + 3 files changed, 11 insertions(+) diff --git a/Gemfile b/Gemfile index 4b33748e94..0747592e8b 100755 --- a/Gemfile +++ b/Gemfile @@ -48,6 +48,8 @@ group :pcap do end group :test do + # cucumber extension for testing command line applications, like msfconsole + gem 'aruba' # cucumber + automatic database cleaning with database_cleaner gem 'cucumber-rails' # cleans database between scenarios for cucumber-rails diff --git a/Gemfile.lock b/Gemfile.lock index a7d11c624c..fc0eae941f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -45,6 +45,10 @@ GEM arel (3.0.3) arel-helpers (2.0.1) activerecord (>= 3.1.0, < 5) + aruba (0.6.1) + childprocess (>= 0.3.6) + cucumber (>= 1.1.1) + rspec-expectations (>= 2.7.0) bcrypt (3.1.7) builder (3.0.4) capybara (2.4.1) @@ -53,6 +57,8 @@ GEM rack (>= 1.0.0) rack-test (>= 0.5.4) xpath (~> 2.0) + childprocess (0.5.3) + ffi (~> 1.0, >= 1.0.11) coderay (1.1.0) cucumber (1.2.1) builder (>= 2.1.2) @@ -71,6 +77,7 @@ GEM factory_girl_rails (4.4.1) factory_girl (~> 4.4.0) railties (>= 3.0.0) + ffi (1.9.3) fivemat (1.2.1) gherkin (2.11.6) json (>= 1.7.6) @@ -178,6 +185,7 @@ PLATFORMS DEPENDENCIES activerecord (>= 3.0.0, < 4.0.0) + aruba cucumber-rails database_cleaner factory_girl (>= 4.1.0) diff --git a/features/support/env.rb b/features/support/env.rb index 29f204c1ee..1ac68a501c 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -5,6 +5,7 @@ # files. require 'cucumber/rails' +require 'aruba/cucumber' # Capybara defaults to XPath selectors rather than Webrat's default of CSS3. In # order to ease the transition to Capybara we set the default here. If you'd