Skip to content

Instantly share code, notes, and snippets.

@donbobka
Created October 17, 2016 16:15
Show Gist options
  • Save donbobka/a73ddad31e95bf34a2f29e3fbf070ab5 to your computer and use it in GitHub Desktop.
Save donbobka/a73ddad31e95bf34a2f29e3fbf070ab5 to your computer and use it in GitHub Desktop.
module InteractionExampleGroup
extend ActiveSupport::Concern
included do
let(:inputs) { {} }
let(:outcome) { described_class.run(inputs) }
let(:result) { outcome.result }
end
RSpec.configure do |config|
config.include self, type: :interaction, file_path: %r{\bspec\/interactions\/}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment