Sha256: e174376e5a6c1757108e149c742cdce088173cdcf8002343fb9847129ea2a7a5

Contents?: true

Size: 915 Bytes

Versions: 38

Compression:

Stored size: 915 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_paths = [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

38 entries across 38 versions & 1 rubygems

Version Path
virgo-0.3.17 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.16 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.15 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.14 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.13 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.12 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.11 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.10 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.9 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.8 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.7 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.6 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.4 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.3 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.2 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3.1 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.3 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.2.9 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.2.8 vendor/gems/shortcode/spec/spec_helper.rb
virgo-0.2.7 vendor/gems/shortcode/spec/spec_helper.rb