Sha256: 2aa3fe4eed7c6d687bf7c4f5752c8021a181451ed840c03aacff89d39f5590bf
Contents?: true
Size: 849 Bytes
Versions: 6
Compression:
Stored size: 849 Bytes
Contents
require 'bundler' Bundler.require(:default, :development) # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} module Support def flatten_calls(calls) [].tap do |flattened_calls| add = -> (calls) do calls.each do |call| flattened_calls << call[0..1] add.call call[2] end end add.call element.base_calls end end def fake_state state = Prawn::SVG::State.new state.viewport_sizing = document.sizing if defined?(document) state end end RSpec.configure do |config| config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.expect_with :rspec do |c| c.syntax = [:should, :expect] end config.include Support end
Version data entries
6 entries across 6 versions & 1 rubygems