Sha256: 591c180a797ff3a3b508542e3fdead5307b694201cf48c6a912cdb9c8ad286a8
Contents?: true
Size: 652 Bytes
Versions: 13
Compression:
Stored size: 652 Bytes
Contents
module Liquid module Rails module Rspec module FilterExampleGroup extend ActiveSupport::Concern include Liquid::Rails::Rspec::ViewControllerContext included do metadata[:type] = :filter 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::FilterExampleGroup, type: :filter, file_path: %r(spec/filters) else config.include Liquid::Rails::Rspec::FilterExampleGroup, type: :filter, example_group: { file_path: %r{spec/filters} } end end
Version data entries
13 entries across 13 versions & 4 rubygems