Displaying 3 results from an estimated 3 matches for "webrat_step".
Did you mean:
webrat_steps
2008 Dec 02
4
Using Cucumber with latest Webrat
...s.git \
vendor/plugins/rspec-rails
script/generate rspec
I create a feature that used steps that included visits. I got the
following error:
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'': no such file to load -- webrat (LoadError)
This occurred at line 4 in webrat_steps.rb
So I commented out that line and added "require ''webrat''" to env.rb
This time I got the following error:
undefined method `visits'' for
#<ActionController::Integration::Session:0x7f3d871693d0> (NoMethodError)
So I had to change the require in env.rb...
2008 Dec 10
1
Oddness with fieldnames containing an underscore
...o: Register new user # features/
manage_users.feature:16
Given I am on the new user page # features/
step_definitions/user_steps.rb:5
And I fill in "login" with "johnm" # features/
step_definitions/webrat_steps.rb:12
And I fill in "password" with "Lmmsoht" # features/
step_definitions/webrat_steps.rb:12
And I fill in "password_confirmation" with "Lmmsoht" # features/
step_definitions/webrat_steps.rb:12
Could not find field:
"...
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
...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:
#
# when /^(.*)''s profile page$/i
# user_profile_path(User.find_by_login($1))
else
raise...