Sha256: 258ea8f08f2aaea63c65a04f6673c1ceb2c86f9530d40c528c05b58d5167cbfe
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
require 'spec_helper' describe Opal::Rails::Processor do it "is registered for '.opal' files" do Tilt['test.opal'].should eq(Opal::Rails::Processor) end it "compiles and evaluates the template on #render" do template = Opal::Rails::Processor.new { |t| "puts 'Hello, World!'\n" } template.render.should include('this.$puts("Hello, World!")') end it "can be rendered more than once" do template = Opal::Rails::Processor.new { |t| "puts 'Hello, World!'\n" } 3.times { template.render.should include('this.$puts("Hello, World!")') } end end
Version data entries
4 entries across 4 versions & 1 rubygems