Sha256: c4dfeed50f5466730af7f984286eda1565e5eaa7836c0a0ce50a4140c131ae56
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
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 context "dependencies for a gae app" do it "should include gae dependencies when gae project option is selected" do options = {:gae => true} Dependency.stub!(:new).with("com.googlecode.objectify", "objectify", "3.1").and_return(@dependency) DependencyManager.new(options).compile_scope.include?(@dependency).should be_true end it "should not have hibernate persistence dependencies when gae project option is selected" do options = {:gae => true} Dependency.stub!(:new).with("org.hibernate", "hibernate-entitymanager", "3.6.7.Final").and_return(@dependency) DependencyManager.new(options).compile_scope.include?(@dependency).should be_false end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
heroku-vraptor-scaffold-0.9.0 | spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb |
vraptor-scaffold-1.3.0.rc | spec/vraptor-scaffold/generators/app/dependency_manager_spec.rb |