Hi,
I like what Spinach is trying to do but I have some minor requests to implement. I like to implement them for you, but I'd like to ask if you guys like it before I go ahead and waste time on it :)
My first feature would be to implement capturable values in steps, much like Jonas Nicklas'
Turnip.
A step definition would look like:
Then "the apple should reach the ground after :count seconds" do |count|
# ....
end
Jonas does some awesome things, like "there is/are :count monster(s)"
This would mean that instead of using define_method to make the steps, you'd need to store the steps inside a hash/lookup table.
The second feature I propose is a shortcut:
Instead of doing this:
class GravitySteps < Spinach::FeatureSteps
feature 'Gravity' # I had to rename the class because it conflicts with a module in my application
end
I'd do this:
Spinach.feature "Gravity" do
end
It'd still be a class, but without a real name, similar to how RSpec works.
What's your opinion on these features?