spec/opal/rails/processor_spec.rb in opal-rails-0.0.6 vs spec/opal/rails/processor_spec.rb in opal-rails-0.1.0

- old
+ new

@@ -4,9 +4,13 @@ it "is registered for '.opal' files" do Tilt['test.opal'].should eq(Opal::Rails::Processor) end + it "is registered for '.rb' files" do + Tilt['test.rb'].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('self.$puts("Hello, World!")') end