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
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
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
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
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
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 &
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
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
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(
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
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
11 matches
Mail list logo