-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hooks and use them in capybara #28
Conversation
@@ -24,4 +29,20 @@ describe Spinach::Feature::Capybara do | |||
page = @feature.go_home | |||
page.has_content?('Hello world').must_equal true | |||
end | |||
it "resets the capybara session after each scenario" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you gonna add new lines any day?
We should start writing a readme or write more integration tests because there is nothing documented. |
Sorry, i didn't document the hooks. Everything else is, but a feature
|
But I mean something to explain how to use Spinach. Now almost everything is documented but there's no guide or examples on how to use Spinach as a whole. |
Great! On Sun, Oct 2, 2011 at 1:20 PM, Oriol Gual <
|
I don't quite see the use of step-side hooks! Could you give me a couple examples? |
Well, for example that feature oriol was working on cucumber: Taking screenshots of every step so you have a complete graphical documentation. Also, statistics, etc... What do you think? |
Now we can do things like:
Or more simply:
Cool, huh?