brentsnook/shokkenki-provider

View on GitHub
lib/shokkenki/provider/rspec/ticket.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rspec/core/dsl'

module Shokkenki
  module Provider
    module RSpec
      module Ticket
        include ::RSpec::Core::DSL

        def verify_with provider
          ticket = self
          describe consumer.label, :shokkenki_provider => true do
            before(:all) { @provider = provider }
            ticket.interactions.each { |i| i.verify_within self }
          end
        end
      end
    end
  end
end