Displaying 20 results from an estimated 1200 matches similar to: "Specifying spec and output format inline?"
2007 Sep 18
2
FW: Specifying spec and output format inline?
Anyone have any advice on this one?
Thanks,
Adam
________________________________
From: rspec-users-bounces at rubyforge.org
[mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Adam Reed
Sent: Monday, September 17, 2007 2:14 PM
To: rspec-users at rubyforge.org
Subject: [rspec-users] Specifying spec and output format inline?
Howdy from Austin, TX.
I''m new to rspec, and am
2007 Sep 20
2
FW: FW: Specifying spec and output format inline?
One more try?
I just want the script to save the rspec output to an html file when the
script is run. In this case, the script will be run from SciTE using
F5, rather than by command line.
Is there a way to specify this within the ruby script?
________________________________
From: rspec-users-bounces at rubyforge.org
[mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Adam Reed
2007 Aug 10
1
How to spec a model method
Still new to Specs...
How do I create a spec to test a model method? Specifically, here is my
spec:
#testing model
describe User do
it "should have many user roles" do
User.reflect_on_association(:user_roles).should_not be_nil
end
it "should have many roles though user roles" do
User.reflect_on_association(:roles).should_not be_nil
end
it "should know
2007 Jul 24
6
Mocking Access Control
I''m trying to jump on the TDD/BDD bandwagon, but am having trouble
understanding how i should mock my user. The user has a habtm
relationship to a roles model (acl_system2 plugin), but I''m not sure
how to tell rspec about a model.
My code:
describe UsersController do
integrate_views
before(:each) do
@user = mock_model(User)
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
2008 Jun 03
1
Clicking on links within facebook iframes (facebook apps)
Hello,
I have a problem with clicking on the links in facebook apps due to
iframes. I am trying to write a little script to run through the funwall
app.
I used IE Dev toolbar to get the name of the id of the iframe (those
iframes how no name attribute). So I run this command:
$ie.frame(:id, "app2378983609_fb_frame").link(:text, ''View this
post'').click
And I get
2007 Jul 26
5
Coding standards and whitespace
Recently as a result of using Git I''ve noticed a number of
inconsistencies in the RSpec codebase with respect to whitespace
(mixed line endings, mixed use of spaces and tabs for indentation,
and trailing whitespace at the end of lines). I never would have
noticed, but Git produces nice colorized diff output which highlights
these kinds of inconsistencies.
I wanted to ask if the
2005 Mar 12
1
FW: Watir needs a Win32GUI library
Anyone need something to do? :)
Dan
-----Original Message-----
From: Bret Pettichord [mailto:bret@pettichord.com]
Sent: Saturday, March 12, 2005 8:25 AM
To: ruby-talk ML
Cc: wtr-general@rubyforge.org
Subject: Watir needs a Win32GUI library
We''ve seen growing enthusiasm for Watir, a web-testing library that is
good
enough that it is convincing people to learn Ruby just so that they
2008 Nov 04
9
RSpec and PostgreSQL not playing nicely together
Here is a very simple spec:
--
require File.expand_path(File.dirname(__FILE__) + ''/../spec_helper'')
describe Product, "The Product model" do
describe "When a new blank product object gets created" do
before(:each) do
@product = Product.new
end
it "should not be valid" do
@product.should_not be_valid
2007 May 10
1
RSpec 0.9.4
RSpec 0.9.4 has just been released. Gems haven''t rsync''ed around the
globe yet, so you might have to wait a few hours to install it.
The big news this time is Spec::Ui 0.2.0, which has been released
along with RSpec core. This RSpec extension gives you custom Watir
matchers (custom Selenium-RC matchers are not implemented yet).
Moreover, it comes with a custom KICK ASS formatter
2006 Sep 06
0
RSpec and Watir
Hi all,
(Sorry for cross-posting - please reply to only one list, preferrably
wtr-general)
I just started on a project where it looks like we might start using Watir.
I just whipped up a little example and some doco about how to (and
why) use RSpec with Watir. It''s in RSpec''s subversion under
trunk/vendor/watir
http://rubyforge.org/scm/?group_id=797
2008 Jul 11
4
how to debug using rspec stories
Hello. I just started to use rspec stories. I followed the following
tutorial:
http://www.tomtenthij.co.uk/2008/1/25/rspec-plain-text-story-runner-on-a-fresh-rails-app
So I implemented my story and some of the steps are:
(...)
When "user creates a product" do
post "products/new", :name => @name
end
Then "there should be a product named
2008 Jan 15
1
Converting Watir script to Mechanize
I have a Watir script that I would like to convert to a Mechanize
script. The watir code looks like this
require ''watir''
include Watir
def test
ie = IE.new
ie.goto(''http://cpref.gsm.com/inter.asp?r=8084'')
ie.text_field(:name, ''inter_string'').set(''Potassium'')
ie.button(:id, ''image1'').click
2007 Mar 15
1
Getting the stack trace
Hi all,
I am using the following code to print the exception, but is there a
way to get the stack trace of the complete error like
Exception: No option with text of Contract form in this select element
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1145/./watir.rb:3656:in
`select_item_in_select_list''
2011 Jul 21
0
Is it possible to open particular version of browser using Watir?
Dear all:
I installed *Utilu Firefox Collection *which has all the versions of the
Firefox. After installation when I run my Watir script then FF version 2 is
getting opened and my scripts are not working.
My question is, is it possible to open particular browser version using
Watir? I am using Watir-webdrivers.
Thanks and Regards,
Amit
--
You received this message because you are subscribed
2009 Feb 09
3
RSpec Testing ActiveRecord config dependency.
I have the following library code:
def normal_time_now
return DateTime.now.utc if default_timezone == :utc
return DateTime.now
end
This is dependent upon a setting in config/environment.rb
# Make Active Record use UTC-base instead of local time
config.active_record.default_timezone = :utc
I want to test that I get the expected results with the config set to
utc and
2006 Dec 17
0
Best way to do automated acceptance tests
Hi
This is only part related to rspec but I asked the Rails list and
didn''t get a reply so I thought I''d try here.
Basically, since rspec_on_rails doesn''t have an equivalent to rails
integration tests, I''m trying to find a way of doing automated
acceptance tests. I''ve found selenium and watir, but I''m struggling
to tell the two
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2007 Apr 11
5
Default exclude pattern in 0.9.0
The "rspec" rake task collects all _spec files in the spec directory,
and excludes the "watir" directory.
Is this indicating a preference for using Watir over Selenium? I would
like it better to standardize on something more neutral, ''ui'' perhaps?
/Marcus
--
Marcus Ahnve
http://marcus.ahnve.net
2008 Oct 16
2
Any good conferences this year about ruby/rspec/watir?
Hello.
Sorry for this little offtopic question, but I was wondering if anyone
happens to know if there''s any good conferences coming up about rspec or
ruby or watir in this year where I could attend to?
Or any good website where such things are listed or something similar.
All suggested conferences should not take place before one month from now
(employer needs some time to get good