Cells has RSpec:
http://nicksda.apotomo.de/2010/12/spec-your-cells-with-rspec-cells/
The Apotomo RSpec support is not hard to build but I'm "terribly busy"
(NOT!) and didn't start with the gem, yet. Are you interested in
helping out?
Nick
On Thu, May 12, 2011 at 8:34 AM, Alexey Tarasevich
<tarase...@gmail.com> wrote:
> Hi Nick,
>
> I could help.
> 1. Do you think it should be separate gem (github.com/tarasevich/
> rspec_apotomo)?
>
Already there: https://github.com/apotonick/rspec-apotomo
Just fork it? Or do you wanna be the authorative developer? I'm ok with both.
> 2. How do you see the syntax of the feature? I think it should be the
> same as in Test::Unit.
> render_widget :xxx
> assert_select "div#xxx"
>
Yeah, the syntax can be similar, we could think about more intuitive
matchers in the next step. You should have a look at the rspec-cells
gem for orientation: https://github.com/apotonick/rspec-cells
What do you think?
Nick
could you describe your workflow of testing widgets in RSpec? A basic
rspec-apotomo setup could be implemented in a couple of hours, I
guess, so we just have to start ;-)
Nick
Nick