spec/opal/rails/processor_spec.rb in opal-rails-0.0.5 vs spec/opal/rails/processor_spec.rb in opal-rails-0.0.6
- old
+ new
@@ -6,13 +6,13 @@
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!")')
+ template.render.should include('self.$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!")') }
+ 3.times { template.render.should include('self.$puts("Hello, World!")') }
end
end