Sha256: a1d8d373b698f6bce37a53b33d8e292a194887bb86a4aae5736bdaaae05ea9d8

Contents?: true

Size: 289 Bytes

Versions: 9

Compression:

Stored size: 289 Bytes

Contents

module SpecHelperExtensions

  # Used to test private methods.
  #
  # The idea is to replace instance.send :private_method.
  # Now it is rather like:
  # We have the scenario we are in the given instance.
  #
  def in_the(instance, &block)
    instance.instance_eval(&block)
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
view_models-4.0.1 spec/spec_helper_extensions.rb
view_models-3.0.1 spec/spec_helper_extensions.rb
view_models-3.0.0 spec/spec_helper_extensions.rb
view_models-1.5.7 spec/spec_helper_extensions.rb
view_models-1.5.6 spec/spec_helper_extensions.rb
view_models-1.5.5 spec/spec_helper_extensions.rb
view_models-1.5.4 spec/spec_helper_extensions.rb
view_models-1.5.3 spec/spec_helper_extensions.rb
view_models-1.5.2 spec/spec_helper_extensions.rb