Sha256: 02880a7a44cace947cb1e08066ed6ff5f565a7b7f42fd8508685387a2fb84ff7
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
require_relative "loader" module RSpec module Permutations module Hook def permutations(name = nil, &block) Loader.new(name).permutations.each do |permutation| context("with permutation #{permutation}") do permutation.each do |key, value| let(key.to_sym) { instance_eval(value) } end instance_eval(&block) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-permutations-1.0.0 | lib/rspec/permutations/hook.rb |