最新にしたらpaths.rbとBackground
features/s upport/pat hs.rb
Cucumberを最新にしてfeatureをgenerateしようとしたらpaths.rbがないと怒られたので、script/gen
Scenarioで記述するページはここで定義:
1 #features/support/paths.rb 2 module NavigationHelpers 3 def path_to(page_name) 4 case page_name 5 when /the homepage/ 6 root_path
Background
1feature内のScenarioに共通な前提条件を記述する。
Background
The background
is run before each of your scenarios but after any of your Before Hooks.
http://wiki.github.c om/aslakhe llesoy/cuc umber/back ground
1 Background: 2 Given a global administra tor named “Greg” 3 And a blog named “Greg’s anti-tax rants” 4 And a customer named “Dr. Bill” 5 And a blog named “Expensive Therapy” owned by “Dr. Bill”
posted by
satoko
on Fri 17 Apr 2009
at 04:04