Skip to content
Goodies for cuke
Ruby Emacs Lisp
Find file
Pull request Compare This branch is 1 commit ahead of maiha:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
features/support
langs/ja
MIT-LICENSE
README

README

cuke-utils
==========

Goodies for cute


features/support/autosave.rb
============================
  A cucumber plugin to save visited page automatically

Requirement:
  -

Prepare:
  put autosave.rb into "features/support/" dir of your rails application

Usage:
  check tmp/webrat/ after run cucumber 

  % ls -l tmp/webrat
  total 56
  -rw-r--r-- 1 maiha maiha  496 May 30 02:18 1.html
  -rw-r--r-- 1 maiha maiha  496 May 30 02:18 2.html
  -rw-r--r-- 1 maiha maiha 4457 May 30 02:18 3.html
  -rw-r--r-- 1 maiha maiha  496 May 30 02:18 4.html
  -rw-r--r-- 1 maiha maiha 6949 May 30 02:18 5.html
  -rw-r--r-- 1 maiha maiha  496 May 30 02:18 6.html
  -rw-r--r-- 1 maiha maiha 7122 May 30 02:18 7.html
  -rw-r--r-- 1 maiha maiha  496 May 30 02:18 8.html
  -rw-r--r-- 1 maiha maiha 9694 May 30 02:18 9.html
  lrwxrwxrwx 1 maiha maiha   41 May 30 02:18 latest.html -> 9.html


features/support/update_language.rb
===================================
  Update keywords of language.yml in runtime without affecting system catalogs

Requirement:
  -

Prepare:
  put update_language.rb into "features/support/" dir of your app

Example:
  Adding 'Premised' into Given keywords

  % vi features/support/update_language.rb
  ...
  keywords = {
    "given" => "Given|Premised",
  }
  Cucumber.update_language "en", keywords

  # in your feature file
  ...
    Scenario Outline: Failed Login
    Premised the user is ...


features/support/disable_warning.rb
============================
  A cucumber plugin to disable warnings from HTML::Document in Rails

Requirement:
  Rails

Prepare:
  put this into "features/support/" dir of your rails application

Example:
  [before]
    ignoring attempt to close th with div
      opened at byte 5076, line 168
      closed at byte 14544, line 415
      attributes at open: {"class"=>"sa_order_detail_th", "align"=>"center"}
      text around open: "   <tr>\n            <th class=\"sa_order_"
      text around close: "v>\n      </div>\n    </div>\n  </body>\n</h"
    ...
    # repeated many times!

  [after]
    # nothing reported


Copyright (c) 2009 maiha@wota.jp, released under the MIT license
Something went wrong with that request. Please try again.