Sha256: e69b75e902b04ff12df224d13522a71aa01c834f067af7b215b4a4bf7da9deb2

Contents?: true

Size: 339 Bytes

Versions: 9

Compression:

Stored size: 339 Bytes

Contents

module Pacto
  describe FilePreProcessor do
    describe "#process" do
      it "should return the result of ERB" do
        subject.process("2 + 2 = <%= 2 + 2 %>").should == "2 + 2 = 4"
      end
      
      it "should not mess with pure JSONs" do
        subject.process('{"property": ["one", "two, null"]}')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pacto-0.2.5 spec/unit/pacto/file_pre_processor_spec.rb
pacto-0.2.4 spec/unit/pacto/file_pre_processor_spec.rb
pacto-0.2.3 spec/unit/pacto/file_pre_processor_spec.rb
pacto-0.2.2 spec/unit/pacto/file_pre_processor_spec.rb
pacto-0.2.1 spec/unit/pacto/file_pre_processor_spec.rb
pacto-0.2.0 spec/pacto/file_pre_processor_spec.rb
pacto-0.1.1 spec/pacto/file_pre_processor_spec.rb
pacto-0.1.0 spec/pacto/file_pre_processor_spec.rb
pacto-0.0.1 spec/pacto/file_pre_processor_spec.rb