Sha256: 17a43319f24c0bb265b98c8e2d291facda5191dbab9bb4b301e07b7d4abc81a7

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

module Approvals
  module RSpec
    module DSL
      def executable(command, &block)
        Approvals::Executable.new(command, &block)
      end

      def verify(options = {}, &block)
        group = eval "self", block.binding
        namer = ::RSpec.configuration.approvals_namer_class.new(group.example)
        Approvals.verify(block.call, options.merge(:namer => namer))
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
approvals-0.0.9 lib/approvals/extensions/rspec/dsl.rb
approvals-0.0.8 lib/approvals/extensions/rspec/dsl.rb
approvals-0.0.7 lib/approvals/extensions/rspec/dsl.rb
approvals-0.0.6 lib/approvals/extensions/rspec/dsl.rb
approvals-0.0.5 lib/approvals/extensions/rspec/dsl.rb