Sha256: 506e9d6dff90952f56f4149fc65067af2e3e7ab7195f1e092224b0ebb175a038
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
# Sets up unprefixed shortcuts for namespaced open_conference_ware_* # fixtures, so that specs can still call users(:quentin) instead of # open_conference_ware_users(:quentin) module FixtureShortcuts Dir.glob(OpenConferenceWare::Engine.root.join('spec', 'fixtures', 'open_conference_ware_*.yml')).each do |f| f = File.basename(f, '.yml') define_method f.sub('open_conference_ware_','') do |*args| send(f, *args) end end end RSpec.configure do |c| c.include FixtureShortcuts end
Version data entries
3 entries across 3 versions & 1 rubygems