```ruby
require 'capistrano/s3/publisher'
require 'mocha/api'

RSpec.configure do |config|
  config.mock_framework = :mocha
end```

Enable AWS stub mode for specs
user
```ruby
require 'capistrano/s3/publisher'
require 'mocha/api'

AWS.stub!

RSpec.configure do |config|
  config.mock_framework = :mocha
end```
assistant