Sha256: 30b4e5b2ac562da0e2c81dc54b5b4756c4f73799ad5e2e5b27997749a624a609

Contents?: true

Size: 418 Bytes

Versions: 14

Compression:

Stored size: 418 Bytes

Contents

if caller
  snippet = caller.grep(%r!spec/snippets/!).first.split(':').first
  require File.expand_path(snippet).gsub('/spec/', '/lib/ramaze/')

  if defined?(Ramaze::CoreExtensions)
    Ramaze::CoreExtensions.constants.each do |const|
      ext = Ramaze::CoreExtensions.const_get(const)
      into = Module.const_get(const)
      into.__send__(:include, ext)
    end
  end
end

require 'lib/ramaze/spec/helper/bacon'

Version data entries

14 entries across 14 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.09 lib/ramaze/spec/helper/snippets.rb
Pistos-ramaze-2008.12 lib/ramaze/spec/helper/snippets.rb
Pistos-ramaze-2009.01 lib/ramaze/spec/helper/snippets.rb
Pistos-ramaze-2009.02 lib/ramaze/spec/helper/snippets.rb
manveru-ramaze-2008.09 lib/ramaze/spec/helper/snippets.rb
manveru-ramaze-2008.10 lib/ramaze/spec/helper/snippets.rb
manveru-ramaze-2008.12 lib/ramaze/spec/helper/snippets.rb
manveru-ramaze-2009.01 lib/ramaze/spec/helper/snippets.rb
ptomato-ramaze-2009.02.1 lib/ramaze/spec/helper/snippets.rb
ptomato-ramaze-2009.02 lib/ramaze/spec/helper/snippets.rb
ramaze-2009.01 lib/ramaze/spec/helper/snippets.rb
ramaze-2008.11 lib/ramaze/spec/helper/snippets.rb
ramaze-2009.03 lib/ramaze/spec/helper/snippets.rb
ramaze-2009.02 lib/ramaze/spec/helper/snippets.rb