Sha256: a91f80f23048af66ad8975aa061f62097f63155603b577d7d87a055f18470815

Contents?: true

Size: 309 Bytes

Versions: 24

Compression:

Stored size: 309 Bytes

Contents

rspec do
  def self.with_view_path *args
    list = if args.first.is_a? Array
      args.first
    else
      args
    end
    
    before do
      rad.template
      list.each{|path| rad.template.paths << path}
    end
   
    after do
      list.each{|path| rad.template.paths.delete path}
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/spec/template.rb
rad_core-0.2.5 lib/rad/spec/template.rb
rad_core-0.2.4 lib/rad/spec/template.rb
rad_core-0.2.3 lib/rad/spec/template.rb
rad_core-0.2.2 lib/rad/spec/template.rb
rad_core-0.2.1 lib/rad/spec/template.rb
rad_core-0.2.0 lib/rad/spec/template.rb
rad_core-0.0.30 lib/rad/spec/template.rb
rad_core-0.0.29 lib/rad/spec/template.rb
rad_core-0.0.28 lib/rad/spec/template.rb
rad_core-0.0.27 lib/rad/spec/template.rb
rad_core-0.0.26 lib/rad/spec/template.rb
rad_core-0.0.25 lib/rad/spec/template.rb
rad_core-0.0.24 lib/rad/spec/template.rb
rad_core-0.0.23 lib/rad/spec/template.rb
rad_core-0.0.22 lib/rad/spec/template.rb
rad_core-0.0.21 lib/rad/spec/template.rb
rad_core-0.0.20 lib/rad/spec/template.rb
rad_core-0.0.19 lib/rad/spec/template.rb
rad_core-0.0.18 lib/rad/spec/template.rb