Displaying 5 results from an estimated 5 matches for "fills_in".
2008 Jun 02
2
get method under 1.1.4 in Stories is undefined
...and got the same
undefined method exception. I confirmed it was still working in 1.1.3
Eventually, I got it to work doing this:
in my first Given:
@app = ActionController::Integration::Session.new
in some When
@app.get page
or using Webrat:
@aop.visits "/"
@app.fills_in field, :with => value
Anyone els seen this? Why is creating the AIS needed?
Thanks
Ed
.
--
Ed Howland
http://greenprogrammer.blogspot.com
2007 Dec 20
19
Story runner rake task
What''s the status on a rake task for the story runner. If nothing is
in progress, where could I start to try and build one?
JD
2008 Dec 02
4
Using Cucumber with latest Webrat
...defined method `visits'' for
#<ActionController::Integration::Session:0x7f3d871693d0> (NoMethodError)
So I had to change the require in env.rb to
require ''webrat/rails''
It worked but I got the following deprecation errors:
visits is deprecated. Use visit instead.
fills_in is deprecated. Use fill_in instead.
clicks_button is deprecated. Use click_button instead.
I changed these in my steps file, and it worked fine.
The problem with requiring webrat from webrat_steps, is that when this
line is executed, the $LOAD_PATHS has not been modified to include the
plugin l...
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
...for your project. If JavaScript is not central
to your application, Webrat is a simpler, effective solution that will let you
run your tests much faster and more frequently. (Benchmarks forthcoming.)
== SYNOPSIS:
def test_sign_up
visits "/"
clicks_link "Sign up"
fills_in "Email", :with => "good at example.com"
select "Free account"
clicks_button "Register"
...
end
Behind the scenes, this will perform the following work:
1. Verify that loading the home page is successful
2. Verify that a "Sign up"...
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
...ferent UI testing frameworks implement such interface giving
Selenium/Webrat/Other UI adapters.
You choose which adapter to use by the story class.
Example
-------
#Webrat syntax
steps_for(:login) do
Given(''I''m logged in'') do
visits ''/login''
fills_in ''username'' ''test''
fills_in ''password'' ''password''
clicks ''login''
end
end
#Make webrat syntax work with selenium
with_steps_for(:login) do
run ''/example/story'', {:type => Rail...