Sha256: 4dc938936f5050bc6ab97d9d682681b48ce3d99ef825a11d20fff99c80a54cd0

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

describe Adyen::SkinBuilder::Helper::Render do

  before do
    extend Adyen::SkinBuilder::Helper::Render
  end

  describe "#partialize" do
    it { partialize("file").should == "_file.html.erb" }
    it { partialize("path1/file").should == "path1/_file.html.erb" }
    it { partialize("/path1/file").should == "/path1/_file.html.erb" }
    it { partialize("/path1/path2/file").should == "/path1/path2/_file.html.erb" }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adyen-skinbuilder-0.4.3 spec/lib/adyen-skinbuilder/helper/render_spec.rb
adyen-skinbuilder-0.4.2 spec/lib/adyen-skinbuilder/helper/render_spec.rb
adyen-skinbuilder-0.4.1 spec/lib/adyen-skinbuilder/helper/render_spec.rb