lib/shokkenki/provider/rspec/ticket.rb
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