Displaying 4 results from an estimated 4 matches for "assert_rjs".
2006 May 30
0
The ARTS Plugin: Another RJS Testing System
If you missed it, I''ve written a plugin for testing RJS that uses
(basically) the same syntax as the RJS templates themselves. Here''s a
taste:
assert_rjs :alert, ''Hi!''
assert_rjs :assign, ''a'', ''2''
assert_rjs :call, ''foo'', ''bar'', ''baz''
assert_rjs :draggable, ''draggable_item''
assert_rjs :drop_receiving, ''receiv...
2008 Jan 23
4
expect_render(...).and_return(''x'')
...ub_render the partial render (which I need to do if I
want to solely test the controller in isolation), I get:
new Insertion.Bottom("x_thing_list", null);
Form.reset("x_new_thing");
The null is due to the render :partial being stubbed. Unfortunately,
this breaks the regex that assert_rjs uses, so my test:
response.should have_rjs(:insert, :bottom, "x_thing_list")
fails, when it should pass.
What I need to be able to do is:
expect_render(:partial => ''thing'', :object => @thing).and_return(''"x"'')
so that the output sat...
2007 Jun 15
2
Is it still possible to use should_have_rjs
Hi
I''ve come back to a Rails project after about a month doing other
work, and there''s a lot of changes. I was on the 0.7 branch before
and I''ve upgraded to RSpec 1.0.5. I used the spec translator, fixed
the cases where it barfed on unusual line contents, and all my model
and controller specs now pass. But I''m getting 53 failures on my view
specs,
2007 May 11
2
spec a replace_html with a partial
I wanted to use ARTS to add RJS in a behaviour driven way to my
application, but I''m having some trouble asserting a replace_html with
a partial.
I''ve created a pastie (http://pastie.caboo.se/60694) which contains
the RJS I want to spec, the spec which I already wrote and its failure
message.
I''m currently using RSpec-0.9.2