Hi folks,
In order to bring some order to the many model classes that I have
under /app/models, I'm created a new directory (for example):
/app/models/nestdir
I've added the required configuration line in environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/app/models/nestdir )
But, when I
On 5 Mar 2009, at 15:24, Ben Mabey wrote:
David Chelimsky wrote:
On Thu, Mar 5, 2009 at 3:31 AM, Matt Wynne m...@mattwynne.net
wrote:
Maybe we should make this easier by providing some facility in the
mock framework to express the following in one statement:
@authenticator =
Greetings,
Is there a way to check quantity of tags?
Something like this:
response.should have_tag('div').quantity(4)
Thanks.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
FWIW, the OP's code says :on = :create. I also happened to
seehttp://mawiniarski.wordpress.com/2009/02/28/rspec-validation-on-create/,
which reinforced for me that this is about validating on create, not
general validation.
I've figured that out after starting a topic.
I checked first and found no conversation that matched my problem so
here it is:
I'm trying to get rspec going on ruby 1.9.1 / rails 2.3.0 - here's my
current gem list:
*** LOCAL GEMS ***
actionmailer (2.3.0)
actionpack (2.3.0)
activerecord (2.3.0)
activeresource (2.3.0)
activesupport (2.3.0)
On Thu, Mar 5, 2009 at 7:40 AM, MAwiniarski mawiniar...@gmail.com wrote:
Greetings,
Is there a way to check quantity of tags?
Something like this:
response.should have_tag('div').quantity(4)
response.should have_tag('div', 4)
Check the assert_select docs (have_tag wraps it) at
Yeap everything worked like a charm, once again checking email contents
like there is no tomorrow ;-)
Rai
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
On Wed, Mar 4, 2009 at 3:14 PM, Rick richard.t.ll...@gmail.com wrote:
I checked first and found no conversation that matched my problem so
here it is:
I'm trying to get rspec going on ruby 1.9.1 / rails 2.3.0 - here's my
current gem list:
rspec-rails does not yet work with Ruby 1.9.1 - this
On Thu, Mar 5, 2009 at 4:02 PM, mudphone kyle...@gmail.com wrote:
Hi folks,
In order to bring some order to the many model classes that I have
under /app/models, I'm created a new directory (for example):
/app/models/nestdir
I've added the required configuration line in environment.rb:
Hi all,
I'm planning to release rspec-1.2 and rspec-rails-1.2 shortly after
rails-2.3 goes final (rails-2.3.1 was just released as RC2). There are
a couple of loose ends right now, and I need your help in two
important areas. I've curtailed releasing github gems, so please
clone, build and
I'm afraid I can't give a release date. 0.2 is fixed(ish) scope, and
therefore time can't be fixed at the same time. I have a lot of travel
the next month, so it will take a least a month I'm afraid.
I know I for one would sure like to see 0.2 come out soon. The scope of
the two 0.2 tickets
On Thu, Mar 5, 2009 at 5:40 AM, MAwiniarski mawiniar...@gmail.com wrote:
Greetings,
Is there a way to check quantity of tags?
Something like this:
response.should have_tag('div').quantity(4)
Another great resource is
Is there a way to locate and 'fill in' a text field (or check a check box,
select an option, etc.) by id? It seems that the fill_in method takes
either the text of the label pointing to the field or the field name. The
are cases when writing cucumber steps when using the HTML id of the input
It does take id. At least in the trunk webrat
On Fri, Mar 6, 2009 at 10:23 AM, Steve Molitor stevemoli...@gmail.comwrote:
Is there a way to locate and 'fill in' a text field (or check a check box,
select an option, etc.) by id? It seems that the fill_in method takes
either the text of the
Steve Molitor wrote:
Is there a way to locate and 'fill in' a text field (or check a check
box,
select an option, etc.) by id? It seems that the fill_in method takes
either the text of the label pointing to the field or the field name.
The
are cases when writing cucumber steps when using
James Byrne wrote:
S/B
click_button(test_this_id)
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Fri, Mar 6, 2009 at 3:05 AM, Matt Wynne m...@mattwynne.net wrote:
On 5 Mar 2009, at 15:24, Ben Mabey wrote:
David Chelimsky wrote:
On Thu, Mar 5, 2009 at 3:31 AM, Matt Wynne m...@mattwynne.net wrote:
Maybe we should make this easier by providing some facility in the
mock framework to
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says:
field can be either the value of a name attribute (i.e. user[email]) or the
text inside a labelelement that points at the input field.
Does it also try the id?
Steve
On Fri, Mar 6, 2009 at 11:03 AM, James Byrne li...@ruby-forum.com
On Fri, Mar 6, 2009 at 3:55 AM, David Chelimsky dchelim...@gmail.com wrote:
On Thu, Mar 5, 2009 at 7:40 AM, MAwiniarski mawiniar...@gmail.com wrote:
Is there a way to check quantity of tags?
response.should have_tag('div', 4)
Ooh! Thank you; I wish I'd known that before. All this time I've
On Fri, Mar 6, 2009 at 2:22 PM, Steve Molitor stevemoli...@gmail.com wrote:
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says:
field can be either the value of a name attribute (i.e. user[email]) or the
text inside a labelelement that points at the input field.
Does it also try
Could you just try it?
On Fri, Mar 6, 2009 at 1:22 PM, Steve Molitor stevemoli...@gmail.comwrote:
Well I'm reading the 0.4.2 webrat rdoc for fill_in, at it says:
field can be either the value of a name attribute (i.e. user[email]) or
the text inside a labelelement that points at the input
I've posted it on this list before, but if you're writing view tests, check
out Elementor:
http://pivotallabs.com/users/patn/blog/articles/608-better-view-testing-with-elementor.
It provides a much cleaner way of asserting on markup, and doesn't require
you to litter your expectations with CSS
Hello RSpec group, is there a way to do RSpec-style shared behaviors in
Cucumber? Or something similar?
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
You have Background in the new 0.2 version (not released yet) which
lets you specify some Given steps for all the scenarios in a feature.
Other than that there's the super-steps, which also give you really
nice re-use:
http://blog.mattwynne.net/2008/11/14/dry-up-your-cucumber-steps/
On 6
Matt Wynne wrote:
You have Background in the new 0.2 version (not released yet) which
lets you specify some Given steps for all the scenarios in a feature.
Other than that there's the super-steps, which also give you really
nice re-use:
On 6 Mar 2009, at 23:35, Ben Mabey wrote:
Matt Wynne wrote:
You have Background in the new 0.2 version (not released yet) which
lets you specify some Given steps for all the scenarios in a feature.
Other than that there's the super-steps, which also give you really
nice re-use:
Here's an error message. The details are not important (beyond to_xml on a
virtual AR database via fixture_dependencies). I know how to work the actual
problem.
NoMethodError in 'BlogMindMap should create XML'
undefined method `macro' for nil:NilClass
spec/blog_mind_map_spec.rb:192:
Phlip wrote:
Here's an error message. The details are not important (beyond to_xml
on a virtual AR database via fixture_dependencies). I know how to work
the actual problem.
NoMethodError in 'BlogMindMap should create XML'
undefined method `macro' for nil:NilClass
28 matches
Mail list logo