Sha256: c6cebade37bd9c51e1b10c5b0ee57007a1aecdff585d7e100dfbdd183478dfea
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
require 'ronin/templates/erb' require 'spec_helper' require 'templates/classes/example_erb' describe Templates::Erb do before(:all) do @uses_erb= ExampleErb.new @uses_erb.x = 2 @uses_erb.y = 3 end it "should render inline ERB templates" do @uses_erb.erb(%{<%= 'hello' %>}).should == 'hello' end it "should render ERB templates using the binding of the object" do @uses_erb.erb(%{<%= @x %> <%= @y %>}).should == '2 3' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-0.3.0 | spec/templates/erb_spec.rb |