Sha256: 5b37e9d334b7a12846e3a0cc7ab4f8d7fe9810aa6904644e09af6b3e90335b47

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper")

describe DependencyManager do
  
  before(:each) do
    others_dependency = mock(Dependency)
    others_dependency.stub!(:exclusions).and_return([])
    Dependency.stub!(:new).and_return(others_dependency)
    @dependency = mock(Dependency)
  end
  
  context "compile scope" do
    it "should include freemarker dependency when template is freemarker" do
      options = {:template_engine => "ftl"}
      Dependency.stub!(:new).with("org.freemarker", "freemarker", "2.3.18").and_return(@dependency)
      DependencyManager.new(options).compile_scope.include?(@dependency).should be_true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vraptor-scaffold-1.2.3 spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb
vraptor-scaffold-1.2.1 spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb
vraptor-scaffold-1.2.0 spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb