Sha256: a179ffc11520dc6f9d452dcd83d3ebfc8e7759e8b915b0634c4eff1edf8be3ee
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'pathname' require 'json' module FixturesHelper def webhook_examples_path Pathname.new(File.dirname(__FILE__)).join('..','fixtures','webhook_examples') end # Returns the JSON representation of an array of +sample_name+ events def webhook_example_events(sample_name) sample_path = webhook_examples_path.join("#{sample_name}.json") JSON.parse(sample_path.read) end # Returns the JSON representation of an +sample_name+ event def webhook_example_event(sample_name) webhook_example_events(sample_name).first end end RSpec.configure do |conf| conf.include FixturesHelper end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mandrill-rails-0.0.2 | spec/support/fixtures_helper.rb |