search for: navigationhelp

Displaying 3 results from an estimated 3 matches for "navigationhelp".

2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
..." #/cuketest/features/support/env.rb #... Webrat.configure do |config| config.mode = :mechanize end #... class MechanizeWorld < Webrat::MechanizeSession require ''spec'' include Spec::Matchers end #... #/cuketest/features/support/paths.rb module NavigationHelpers # Maps a name to a path. Used by the # # When /^I go to (.+)$/ do |page_name| # # step definition in webrat_steps.rb # def path_to(page_name) case page_name when /the homepage/ ''/'' # Add more mappings here. # Here is a more fancy example:...
2011 Mar 15
8
Problems with Object#id deprecation
Hello everyone, in a test helper in my app I call category.id that gets the id of category in the database. However, when running RSpec I get the following error: As a parla customer /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning: Object#id will be deprecated; use Object#object_id /Users/saulolopes/code/parla/spec/acceptance/support/paths.rb:13: warning: Object#id
2013 Jun 18
1
Rails 3 in action book: some files are not generated as written in the book
...enario "Given I am on the homepage" in the file "features/step_definitions/web_steps.rb" # file: features/step_definitions/web_steps.rb Given /^(?:|I )am on (.+)$/ do |page_name| visit path_to(page_name) end But it doesn''t. Also it doesn''t generate module NavigationHelpers along with the "features/support/paths.rb" file. Why does it happen? Is it just a deprecated behavior and now cucumber doesn''t generate those files? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups &quo...