Skip to main content
100%

Gist 578871

✓ Published0🌍 Public
DDylanFM
Last edited Sep 14, 2010
Created on Sep 14, 2010

This example shows a Gist titled "Gist 578871" that integrates RSpec mocking and Authlogic into a Cucumber testing environment. It demonstrates how to configure RSpec's mock framework within Cucumber steps by explicitly setting up and tearing down mocks around each scenario. The code loads supporting files like `support.rb`, which requires `cucumber/rspec/doubles` and `rspec/core`, and uses `RSpec::Mocks::setup`, `verify`, and `teardown` in `Before` and `After` hooks. It also activates Authlogic’s test mode and resets `Sham` data. The rendering approach is code-based, not visual, focusing on test configuration.

AI-generated description

Similar vizzes