Sha256: 52c95558235132ed3b1388f849e86a7c84bef0491df3c175c4d91297cf3c73c4

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

require 'rspec/the/version'

module RSpec
  module The
    def the(method, &block)
      describe(method.to_s) do
        let(:the_subject) { public_send(method) }

        def is_expected
          expect(the_subject)
        end

        example(nil, &block)
      end
    end
  end
end

RSpec.configure do |rspec|
  rspec.extend RSpec::The
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-the-0.0.1 lib/rspec/the.rb