Sha256: b661689d1b23a06b0e70122dc84f14fb84e2b8f8e1eddd57c207eaaa856d1941

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

require "spec_helper"

describe Mascot::Extensions::PartialsRemover do
  context ".partial?" do
    it "is true if begins with _" do
      expect(Mascot::Extensions::PartialsRemover.partial?("/foo.bar/_buzz.haml")).to be true
    end
    it "is false if does not being with _" do
      expect(Mascot::Extensions::PartialsRemover.partial?("/foo.bar/buzz.haml")).to be false
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mascot-rails-0.1.16 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.15 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.14 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.12 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.11 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.10 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.9 spec/mascot/extensions/partials_remover_spec.rb
mascot-rails-0.1.8 spec/mascot/extensions/partials_remover_spec.rb