Sha256: cd0b7fcd069b51b0b78364570ec8458bf4fcbc6f43a15989f9dff65ffea46f51

Contents?: true

Size: 852 Bytes

Versions: 3

Compression:

Stored size: 852 Bytes

Contents

module TestSpec
  module Spec
    def self.included(base)
      base.instance_eval do
        alias :Feature    :context
        alias :Ability    :context
        alias :Story      :context
        alias :Component  :context
        alias :Workflow   :context

        alias :Background :before
        alias :Setup      :before
        alias :Teardown   :after
      end
    end
  end
end

# rubocop:disable Naming/MethodName
def self.Feature(*args, &block)
  RSpec.describe(*args, &block)
end

def self.Ability(*args, &block)
  RSpec.describe(*args, &block)
end

def self.Story(*args, &block)
  RSpec.describe(*args, &block)
end

def self.Component(*args, &block)
  RSpec.describe(*args, &block)
end

def self.Workflow(*args, &block)
  RSpec.describe(*args, &block)
end
# rubocop:enable Naming/MethodName

RSpec.configuration.include TestSpec::Spec

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_spec-1.1.0 lib/test_spec/spec.rb
test_spec-1.0.0 lib/test_spec/spec.rb
test_spec-0.1.0 lib/test_spec/spec.rb