Sha256: 8ca8e02e95add216c87b3cd681cc8e908638edea35b29a3c3eda502aca66c20d
Contents?: true
Size: 627 Bytes
Versions: 13
Compression:
Stored size: 627 Bytes
Contents
module Liquid module Rails module Rspec module TagExampleGroup extend ActiveSupport::Concern include Liquid::Rails::Rspec::ViewControllerContext included do metadata[:type] = :tag before(:all) { setup_view_and_controller } end end end end end RSpec.configure do |config| if RSpec::Core::Version::STRING.starts_with?('3') config.include Liquid::Rails::Rspec::TagExampleGroup, type: :tag, file_path: %r(spec/tags) else config.include Liquid::Rails::Rspec::TagExampleGroup, type: :tag, example_group: { file_path: %r{spec/tags} } end end
Version data entries
13 entries across 13 versions & 4 rubygems