Sha256: 803336e3bb457cfbd6e8c5af091d28582ebed083ab3ba1aa43a1b075bca44eed

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

module RSpec
  module ExpectIt
    module ExpectationTargets
      class ExpectIts < ExpectIt
        attr_accessor :method

        def initialize(context, method)
          super(context)
          self.method = method
        end

        private

        def get_subject
          context.subject.send(method)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-expect_it-2.0.0 lib/rspec/expect_it/expectation_targets/expect_its.rb