title: Helpers in rspec
body: <p>I have an rspec project that is used as a standalone app to test APIs. I want to find out what the best way is to define my API calls as helpers for code reusage.</p>
  
  <p>The way I have it setup is I have a spec folder that contains a support folder and a test folder. In support I have a bunch of ruby files that are set up with ruby module/class that define API calls to be used in the specs.</p>
  
  <p>example:</p>
  
  <pre><code>module Helpers
    class Project
  
      def add(name: nil)
        api_call_code_goes_here
      end
  
    end
  end
  </code></pre>
  
  <p>This has worked for me, but I have been reading up on shared context in rspec and wonder if that is best practice or would work better for me.</p>
  
  <p>example:</p>
  
  <pre><code>RSpec.shared_context "project" do
  
    def add_project(name: nil)
      api_call_code_goes_here
    end
  
  end
  </code></pre>
  
  <p>Is there anyone with a similar rspec project that has helpers similar to mine? If so I would like to know how you are setting up your helpers.</p>