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