Sha256: bc21c0c038fcf7d45e1a5c2b3ba5dffac10fd2cbe0f4b30accde0090cedb3a90
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 Bytes
Contents
module FixtureProvider extend ActiveSupport::Concern included do |base| let(:fixture_paths) { self.class.fixture_paths } let(:parser_fixture_paths) { self.class.parser_fixture_paths } let(:generator_fixture_paths){ self.class.generator_fixture_paths } end class_methods do def fixture_paths Dir["#{__dir__}/../fixtures/**/*.x"] end def parser_fixture_paths Dir["#{__dir__}/../fixtures/parser/**/*.x"] end def generator_fixture_paths Dir["#{__dir__}/../fixtures/generator/**/*.x"] end end end RSpec::configure do |c| c.include FixtureProvider end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xdrgen-0.1.1 | spec/support/fixtures.rb |
xdrgen-0.1.0 | spec/support/fixtures.rb |
xdrgen-0.0.1 | spec/support/fixtures.rb |