Re: [rspec-users] Testing multi-model-form views in Rails 2.3.3 and RSpec 1.2.7

2009-09-05 Thread Yury Kotlyarov
I have just the same problem. Any suggestion? TIA, Yury Christoph Schiessl wrote: > I've created a small application to demonstrate the problem in more > detail: > > http://github.com/cs/nested_attributes_spec_demo > > Just clone it, migrate the sqlite database and run `rake spec`. You'll > see

Re: [rspec-users] how to write complex matchers

2009-02-14 Thread Yury Kotlyarov
Phlip wrote: Yury Kotlyarov wrote: http://github.com/yura/howto-rspec-custom-matchers/ The project aims to encourage feedback on the best practices of creating custom expectation matchers and specs for them. Does it make sense? That just says it's a "project". One git cl

Re: [rspec-users] how to write complex matchers

2009-02-14 Thread Yury Kotlyarov
Phlip wrote: http://github.com/yura/howto-rspec-custom-matchers/ RSpec is a library ;-) Please try again: What is that source code drop. A website? A library? or something else? ok - from README: The project aims to encourage feedback on the best practices of creating custom expectat

Re: [rspec-users] how to write complex matchers

2009-02-14 Thread Yury Kotlyarov
Phlip wrote: Yury Kotlyarov wrote: The major problem is fixed: http://github.com/yura/howto-rspec-custom-matchers/ Apologies if I missed something, but is that a howto or a library? Do I git it and run it to ... learn to customize matchers? RSpec is a library ;-) And I have some issues

Re: [rspec-users] how to write complex matchers

2009-02-14 Thread Yury Kotlyarov
Phlip wrote: David Chelimsky wrote: This looks pretty cool. I wonder if you'd have any interest in making this a bit more rspec-friendly? Something like an option to run it like this: expect_xpath do It's on my do-list, but... ...are pluggable matchers as hard to write as the OP implied? Ho

Re: [rspec-users] how to write complex matchers

2009-02-12 Thread Yury Kotlyarov
Yury Kotlyarov wrote: SOLVED! just need to pass matched result to inner block. gist: http://gist.github.com/62562 Many thanks, Yury I was wrong. It yields just one last line from the inner block. It passes following: it "should have form to create a new user" do render &

Re: [rspec-users] how to write complex matchers

2009-02-12 Thread Yury Kotlyarov
SOLVED! just need to pass matched result to inner block. gist: http://gist.github.com/62562 Many thanks, Yury ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] how to write complex matchers

2009-02-12 Thread Yury Kotlyarov
David Chelimsky wrote: On Thu, Feb 12, 2009 at 5:52 AM, Yury Kotlyarov wrote: Hi, I am trying to write custom matcher which accepts block to spec views with forms/fieldsets/inputs eg view: --- Personal Information First name ... spec: --- it

[rspec-users] how to write complex matchers

2009-02-12 Thread Yury Kotlyarov
Hi, I am trying to write custom matcher which accepts block to spec views with forms/fieldsets/inputs eg view: --- Personal Information First name ... spec: --- it "should have form with input fields" do render ... response.should have_form(

[rspec-users] calls with block in views

2008-08-11 Thread Yury Kotlyarov
Hi! I have a view: <% restrict_to 'admin' do %> <%= render :partial => 'detail' %> <% end %> What's the best way to spec view in this case - I just want to yield block in restrict_to call. Thanks in advance, Yury ___ rspec-users mailing list

Re: [rspec-users] Spec::Rails::DSL::HelperEvalContextController: missing defau

2007-11-19 Thread Yury Kotlyarov
got the same by running autotest. fixed by adding following files to rspec_on_rails: lib/spec/rails/example/helper_behaviour_helper.rb lib/spec/rails/example/view_example_helper.rb --Yury David Chelimsky wrote: > On 10/15/07, Chris Olsen <[EMAIL PROTECTED]> wrote: > >> Just created a new pr