Sha256: 4bd8f5273e0715e7bdd64572636d421fba094e2f9c1377911a4b9dfdce1f32e3

Contents?: true

Size: 438 Bytes

Versions: 2

Compression:

Stored size: 438 Bytes

Contents

require 'spec_helper'

shared_examples_for "a Ruby project" do
  it "should add the include directories to the $LOAD_PATH" do
    subject.activate!

    subject.include_dirs.all? { |dir|
      $LOAD_PATH.include?(dir)
    }.should == true
  end

  it "should remove the include directories to the $LOAD_PATH" do
    subject.deactivate!

    subject.include_dirs.all? { |dir|
      $LOAD_PATH.include?(dir)
    }.should == false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-visualizer-0.2.3 spec/project_examples.rb
dm-visualizer-0.2.2 spec/project_examples.rb