Sha256: 17ee6fc7dc6391d23b53e648139837c4ed6483b24923e6bb146f3b701f5a3b99

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

def resource(filename)
  File.expand_path("../resources/#{filename}", __FILE__)
end

module <%= config[:classname] %>
  module Test
    # This should include test-specific resources (i.e. pre-built uniform objects)
    # that are required in order to run your specs. It is largely an object
    # factory for building objects for testing.
    #
    # @example
    # <%= config[:classname] %>::Test::Resources::LoggedInUser
    module Resources
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
projecter-0.1.4 templates/spec_resources.rb.tt
projecter-0.1.3 templates/spec_resources.rb.tt
projecter-0.1.2 templates/spec_resources.rb.tt
projecter-0.1.1 templates/spec_resources.rb.tt
projecter-0.0.3 templates/spec_resources.rb.tt