Sha256: 1800fb963e2b7770856b9957bdce0c0d853cf85553f2e6e4bc3993f33524cd55
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
require "spec_helper" require "mvcli/erb" describe "MVCLI::ERB" do Given(:erb) {MVCLI::ERB.new} context "when I compile a template" do Given(:output) {""} Given(:template) {erb.compile "name: <%= this.name %>"} context "and call it with a context" do When {template.call double(:Context, :name => 'Charles'), output} Then {output.should eql "name: Charles"} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mvcli-0.1.0 | spec/mvcli/erb_spec.rb |