jlong / serve

Serve is a small Rack-based web server and rapid prototyping framework for Web applications (specifically Rails apps). Serve is meant to be a lightweight version of the Views part of the Rails MVC. This makes Serve an ideal framework for prototyping Rails applications or creating simple websites. Serve has full support for Rails-style partials and layouts.
http://get-serve.com
Other
836 stars 90 forks source link

Acceptance test framework helpers #55

Closed hedgehog closed 12 years ago

hedgehog commented 12 years ago

Perhaps I have misunderstood Serve's scope:

It seems natural to want to use the same acceptance test framework when describing your prototype, as you do for the actual end product.

Hence it would be nice to have some such option

Serve.bdd_framework = :capybara

This would ensure capybara's rspec helpers are available?

Sensible

revans commented 12 years ago

I agree on using an acceptance testing framework. Serve doesn't necessarily need to do anything to allow this. You should be able to use cucumber + capybara in your own project to get this going.

hedgehog commented 12 years ago

Okay, what had me puzzled was the documentation on Serve's helpers. Are they guaranteed not to conflict with webrat/capybara et al.?

revans commented 12 years ago

I don't know for certain as I haven't put any acceptance framework into a serve project. I'd be interested in hear about your experiences, if you decide to do that.

ntalbott commented 12 years ago

@hedgehog did you make any progress on this? Would love to hear your experiences.

hedgehog commented 12 years ago

@ntalbott, Sorry no progress. I'm using middleman and octopress right now. Feel free to close this issue.