Sha256: 742cdfd1137fda34eb41de6e38195bafe1d95c9429aedc229772998009e5b9ad

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

require 'spec_helper'

describe RailsBlogEngine::Filters::Code do
  let(:filter) { RailsBlogEngine::Filters::Code.new }

  describe ".process" do
    it "applies syntax highlighting to code blocks" do
      output = filter.process(<<END_OF_CODE, :lang => 'ruby')
def foo
  42
end
END_OF_CODE
      output.should match(/foo/)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_blog_engine-0.0.4 spec/lib/rails_blog_engine/filters/code_spec.rb
rails_blog_engine-0.0.3 spec/lib/rails_blog_engine/filters/code_spec.rb
rails_blog_engine-0.0.2 spec/lib/rails_blog_engine/filters/code_spec.rb