Sha256: efac41a1a0e0291b6bfb034103f17576481491c7b771ebf12a5187aca31097da
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require 'spec_helper' class TestTemplate1 < ::Prologue::TemplateRunner def on_invocation return "hi" end end class TestTemplate2 < ::Prologue::TemplateRunner end describe Prologue::TemplateRunner do it "should not raise an error if the on_invocation method is implemented" do lambda { TestTemplate1.new.on_invocation }.should_not raise_error end it "should raise an error if the on_invocation method isn't implemented" do lambda { TestTemplate2.new.on_invocation }.should raise_error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prologue-0.6.0 | spec/prologue_template_runner_spec.rb |