Sha256: bac7add9527a60988f999926ed6305ced614ce06c7be259099638c6cc2712c8c
Contents?: true
Size: 874 Bytes
Versions: 4
Compression:
Stored size: 874 Bytes
Contents
require File.join(File.dirname(__FILE__), "helpers") require 'spec' module Spec # :nodoc: module Example # :nodoc: module ExampleMethods # :nodoc: include Mack::Routes::Urls include Mack::Testing::Helpers alias_method :mack_run_with_description_capturing, :run_with_description_capturing def run_with_description_capturing begin in_session do instance_eval(&(@_implementation || PENDING_EXAMPLE_BLOCK)) end ensure @_matcher_description = Spec::Matchers.generated_description Spec::Matchers.clear_generated_description end end end # ExampleMethods end # Example module Matchers # :nodoc: def match(regexp) regexp = /#{regexp}/ if regexp.is_a?(String) Matchers::Match.new(regexp) end end # Matchers end # Spec
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mack-0.7.0 | lib/mack/testing/rspec.rb |
mack-0.7.0.1 | lib/mack/testing/rspec.rb |
mack-0.7.1.1 | lib/mack/testing/rspec.rb |
mack-0.7.1 | lib/mack/testing/rspec.rb |