Sha256: f505857dba2c2c18ea9e005ba088db1bfdaf348e375a4bcd37dd0d5e4b0bd56e

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

require 'rubygems'
require 'spec'

# Loads various ruby files and application stacks for testing purposes
module AppSlice
  module TestHelpers
    class << self
      def require_app_slice!
        require File.join(File.dirname(__FILE__), %w[.. lib app_slice])
      end
      
      def require_middleware!
        require 'rack'
        require File.join(File.dirname(__FILE__), %w[.. lib app_slice middleware])
      end
      
      def require_rails!
        # Load whatever is needed to test app slice integration with rails
        # require 'rails'
        require File.join(File.dirname(__FILE__), %w[.. lib app_slice rails])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bradgessler-app-slice-0.2.0 spec/spec_helper.rb
bradgessler-app-slice-0.2.1 spec/spec_helper.rb
bradgessler-app-slice-0.2.2 spec/spec_helper.rb
bradgessler-app-slice-0.2.3 spec/spec_helper.rb
bradgessler-app-slice-0.2.4 spec/spec_helper.rb