Sha256: 97a0b8a73e585d81d8ef86b0b238b0912846028ed8cb1705aa5ad756df4e8c46

Contents?: true

Size: 911 Bytes

Versions: 3

Compression:

Stored size: 911 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__)

if ENV["CI"]
  require 'coveralls'
  Coveralls.wear!
end

require 'rspec'
require 'rails'
require 'action_view'
require 'shortcode'
require 'support/fixtures'

# Set slim's attribute quotes to use single quotes so it's the same as haml
Slim::Engine.set_default_options attr_quote: "'"

RSpec.configure do |config|
  config.order = "random"

  config.before(:each) do
    Shortcode::Presenter.presenters = {}
    Shortcode.setup do |config|
      config.template_parser = :erb
      config.template_path = File.join File.dirname(__FILE__), "support/templates/erb"
      config.templates = nil
      config.block_tags = [:quote, :collapsible_list, :item, :timeline_person, :rails_helper, :custom_helper]
      config.self_closing_tags = [:timeline_event, :timeline_info]
      config.attribute_quote_type = '"'
      config.use_attribute_quotes = true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shortcode-1.1.0 spec/spec_helper.rb
shortcode-1.0.2 spec/spec_helper.rb
shortcode-1.0.0 spec/spec_helper.rb