2011-10-08 15:50:17 +00:00
|
|
|
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
|
|
|
|
|
|
|
require 'yaml'
|
|
|
|
require 'teamocil'
|
2012-01-21 18:47:44 +00:00
|
|
|
require File.join(File.dirname(__FILE__), "./mock/layout.rb")
|
2011-10-08 15:50:17 +00:00
|
|
|
|
|
|
|
module Helpers
|
|
|
|
|
2011-10-10 12:54:26 +00:00
|
|
|
def layouts # {{{
|
2011-10-08 15:50:17 +00:00
|
|
|
return @@examples if defined?(@@examples)
|
2011-10-10 12:54:26 +00:00
|
|
|
@@examples = YAML.load_file(File.join(File.dirname(__FILE__), "fixtures/layouts.yml"))
|
2011-10-08 15:50:17 +00:00
|
|
|
end # }}}
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
RSpec.configure do |c|
|
|
|
|
c.include Helpers
|
|
|
|
end
|