Skip to content

Instantly share code, notes, and snippets.

@DylanFM
Created September 14, 2010 11:01
Show Gist options
  • Select an option

  • Save DylanFM/578871 to your computer and use it in GitHub Desktop.

Select an option

Save DylanFM/578871 to your computer and use it in GitHub Desktop.
# require 'cucumber/rspec/doubles'
# The code below is copied from the above file
# It wasn't working, but this does for some reason
require 'rspec/core'
RSpec.configuration.configure_mock_framework
World(RSpec::Core::MockFrameworkAdapter)
Before do
RSpec::Mocks::setup(self)
end
After do
begin
RSpec::Mocks::verify
ensure
RSpec::Mocks::teardown
end
end
# End...
require 'spec/support/blueprints'
require 'spec/support/http_vanilli'
require 'authlogic/test_case'
Before do
# So logins will work
activate_authlogic
# Reset shams
Sham.reset(:before_all)
Sham.reset(:before_each)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment