Sha256: 8356c2167ffb603f5a639335c52752cc13d2b736a624d11157a3596f940558dd

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require "spec_helper"

describe StyleGuide::Config do
  describe "#partial_paths" do
    context "when no paths have been added" do
      it { should have(1).partial_path }
      its(:partial_paths) { should == [StyleGuide::Engine.root.join("app/views/style_guide/partials")] }
    end

    context "after a path has been added" do
      before { subject.partial_paths << "partials-and-magic-beans" }

      it { should have(2).partial_paths }
      its(:partial_paths) { should include "partials-and-magic-beans" }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
style-guide-0.2.1 spec/lib/style_guide/config_spec.rb
style-guide-0.2.0 spec/lib/style_guide/config_spec.rb
style-guide-0.1.0 spec/lib/style_guide/config_spec.rb