Displaying 20 results from an estimated 87 matches for "webrat".
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story
testing.
MHS_Testing and Rspec-ui provide some great help for testing through
frameworks like Selenium/Watir.
But there is something missing, Webrat has changed the landscape
somewhat with Acceptance Tests/Story Driven development.
Now I have a choice:
1. Tests and rails process run as...
2009 Jan 13
2
Cucumber newbie gets Webrat::Se ssion (LoadError)
Just trying to get cucumber/webrat going and so after following the
installation process here
http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails i wrote a
quick feature and when I rake features, I get the following in the
console:
c:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/acti
ve_support/d...
2009 Jan 09
1
Is there a problem with webrat?
webrat (0.3.4)
I have this in the view:
<div id="list_entity_1">
<tr>
<td>Just An Entity</td>
<td>000001</td>
<td id="show_entity_1"><a href="/entities/1">Show Entity</a></td>
<td id="edit...
2008 Dec 02
4
Using Cucumber with latest Webrat
I added cucumber to my rails project using the following commands:
git submodule add git://github.com/aslakhellesoy/cucumber.git \
vendor/plugins/cucumber
ruby script/generate cucumber
git submodule add git://github.com/brynary/webrat.git \
vendor/plugins/webrat
git submodule add git://github.com/dchelimsky/rspec.git \
vendor/plugins/rspec
git submodule add git://github.com/dchelimsky/rspec-rails.git \
vendor/plugins/rspec-rails
script/generate rspec
I create a feature that used steps that included visits. I got the
follo...
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys,
We developed this plugin while writing my first real set of RSpec
stories. It''s still missing a lot of functionality, but it''s useful to
us as is, so I''m shipping 0.1.0. (Patches welcome. :) )
Code is available at: http://svn.eastmedia.net/public/plugins/webrat/
What do you think?
-Bryan
Here''s the README:
-----------------------------------------------------------
= Webrat - Ruby Acceptance Testing for Web applications
by Bryan Helmkamp <bryan at brynary.com> and Seth Fitzsimmons <seth at mojodna.net>.
Initial development spon...
2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
...y/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/mock.rb:70:in
`request''
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:41:in
`make_request''
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:44:in
`orig_get''
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in
`__send__''
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in
`get''
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:104:in
`send''
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/sessi...
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
Has anybody had any luck getting Cucumber, Webrat and Selenium to play
nicely together for SSL sites?
My test environment:
- nginx front-end accepting SSL requests, proxying them to mongrel
back-end
- mongrel back-end accepting normal HTTP requests
- application routes configured with ":protocol => ''https''" s...
2009 Feb 04
2
Can cucumber/webrat set a value on a hidden field
...added to a group.
I assume I can?t use the auto_complete ajax calls from within Cucumber.
But I wondered if I could make a step that would update the value of the
hidden field (as if I had selected the user from the auto_complete
field).
According to this documentation
(http://gitrdoc.com/brynary/webrat/tree/master/classes/Webrat/Scope.html)
there should be a set_hidden_field method. But the method no longer
appears to be in the webrat/core/scope.rb file
Based on the above documentation the method should be
# File lib/webrat/core/scope.rb, line 53
def set_hidden_field(field_locator, options =...
2009 Jan 20
6
[Cucumber, Merb, Webrat] undefined method ''response'' for Merb::Test::World::Webrat
Hello!
I get the following error everytime I try to check the result of previous
step (by the way, I use default result_steps.rb):
undefined local variable or method `response'' for
#<Merb::Test::World::Webrat:0x7f083c7860b8> (NameError)
./features/steps/result_steps.rb:14:in ` /^the (.*) ?request should fail/''
features/authentication/login.feature:17:in `/^the (.*) ?request should
fail/''
It is raised even in a freshly generated merb application (merb-gen app) and
freshly generated...
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3.
My spec_helper.rb
ENV["RAILS_ENV"] ||= ''test''
require
File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment''))
require ''spec/autorun''
require ''spec/rails'...
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on
Windows.
It seems to work ok, but when I try to add selenium to webrat. I get the
error shown below.
It seems like it thinks it is in a linux environment or something as the
error happens when it tries to start selenium server and there is a "&&quo...
2012 Aug 23
5
wat is diff between webrat and capybara?????
now i am using cucumber.........and i get two topic webrat and
capybara........wat is the diff between them???????which one is
good?????which one i use?????
Regards
Fahim Babar Patel
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk...
2008 Sep 30
4
Using the response object in stories
...TP_USER_AGENT"].include?("MSIE")
= stylesheet_link_tag ''blueprint/ie.css''
= stylesheet_link_tag ''confirm_ie.css''
The problem is that request.env["HTTP_USER_AGENT"] is nil when I go to
some page in the features I write with cucumber and webrat
This is the error I get
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
(ActionView::TemplateError)
On line #23 of layouts/application.html.haml
?How can I st...
2008 Jun 24
1
Suggestions on how to use stub_model with webrat?
Hi all,
I am using story runner with webrat, but I am not sure how to
incorporate stub_model into my tests.
The webrat steps only care about the user interface and have nothing
to say about interaction with the database.
Following Ben Mabey, I have a line in my story like:
"When clicks the Create button"
And a step like:
W...
2011 Apr 19
1
RSpec/Webrat Checking output is properly escaped
I want to test that the JSON response from a create action is
sanitized properly, but rspec or webrat appears to be parsing the
output into proper HTML chars instead of escaped characters. I have
verified that it escapes properly in the regular browser json
response.
The relevant RSpec test code is:
include ActionView::Helpers::TextHelper
include ActionView::Helpers::UrlHelper
it &q...
2009 Jun 25
2
Bad Form?
...to test a *ahem* Perl XML web service.. talk about technology soup,
but I have it working quite well.
I have an example project on GitHub that actually has a contrived Sinatra
application to replicate testing a 3rd party system that you can only test
the interface to.
https://github.com/leehambley/webrat-mechanize-xml-rpc<https://github.com/leehambley/webrat-mechanize-xml-rpc/tree>
The problem, or rather question is as such - I have, in my application''s
test environment made use of PluggableParser, but overloaded it with the
.default, and .html calls to parse everything as myown XML...
2009 Feb 05
3
[Cucumber, Webrat] Error backtraces shown as HTML in console
Since upgrading to Cucumber 0.1.99.19 I''ve noticed that the backtraces
appearing in the console output are of the form:
Page load was not successful (Code: 500):
Followed by the dump of the rails error page. That page looks fine in
a browser, and it''s helpful enough to see it when save_and_open_page
does its thing, but I''m pretty used to reading plain old
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
...arching on Google (and having seen the term capybara
before somewhere in my error messages), somebody pointed out that when
using capybara, contain() would not exist, but have_content(). So I
tried it with have_content(), and it worked!
I’m a bit confused now – what exactly am I using? Capybara or Webrat?? I
thought I use Webrat, and Capybara is never mentioned in the RSpec book.
So why/where did Capybara sneak in?? Was Webrat maybe replaced in the
never Rails version I’m using?
Some information about my Rails app…
$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.4.0]
$ gem li...
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
...d_open_page
response.should have_content("1 movie")
response.should have_content("Caddyshack")
end
So far everything''s working, but the have_content("1 movie") doesn''t,
although I have hard-coded the string into the view, and when displaying
what Webrat sees using save_and_open_page, the string definitely is
there!
Name: Comedy
Contains 1 movie
Edit | Back
This is what Cucumber tells me:
Scenario: Create movie in genre #
features/create_movie.feature:7
Given a genre named Comedy #
features...
2008 Sep 29
3
rspec-ui overlap with cucumber?
...''m using cucumber + selenium and I love it. However I''m looking to
add some methods (example: click_and_wait etc) to the lib. Therefore
looked around a bit and I got two questions:
Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap
with its propose with webrat with cucumber or I''m missing a point?
Secondly, are there any plans to "officially" support selenium along
with webrat? (or perphaps cucumber project is just waiting someone
with such needs to stand up go for it.)
Cheers,
Priit