Sha256: 5d106eac93ccbe083db963e02793a846fb50e453cc1beec53d2c93c493591c6c

Contents?: true

Size: 815 Bytes

Versions: 6

Compression:

Stored size: 815 Bytes

Contents

require 'spec_helper'

describe Konacha do
  describe ".config" do
    subject { Konacha.config }

    describe ".spec_dir" do
      it "defaults to 'spec/javascripts'" do
        subject.spec_dir.should == "spec/javascripts"
      end
    end
  end

  describe ".spec_paths" do
    subject { Konacha.spec_paths }

    it "returns an array of paths relative to spec_dir" do
      subject.should include("array_sum_js_spec.js")
      subject.should include("array_sum_cs_spec.js.coffee")
    end

    it "includes subdirectories" do
      subject.should include("subdirectory/subdirectory_spec.js")
    end

    it "does not include spec_helper" do
      subject.should_not include("spec_helper.js")
    end
  end

  it "can be configured in an initializer" do
    Konacha.config.configured.should == true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
konacha-1.1.3 spec/konacha_spec.rb
konacha-1.1.2 spec/konacha_spec.rb
konacha-1.1.1 spec/konacha_spec.rb
konacha-1.1.0 spec/konacha_spec.rb
konacha-1.0.0 spec/konacha_spec.rb
konacha-1.0.0.rc1 spec/konacha_spec.rb