You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/09/27 02:27:48 UTC
svn commit: r1526760 - /buildr/trunk/spec/ide/idea_spec.rb
Author: donaldp
Date: Fri Sep 27 00:27:47 2013
New Revision: 1526760
URL: http://svn.apache.org/r1526760
Log:
Make sure the tests don't rely on a real local gwt artifact and instead create a test only local artifact
Modified:
buildr/trunk/spec/ide/idea_spec.rb
Modified: buildr/trunk/spec/ide/idea_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/ide/idea_spec.rb?rev=1526760&r1=1526759&r2=1526760&view=diff
==============================================================================
--- buildr/trunk/spec/ide/idea_spec.rb (original)
+++ buildr/trunk/spec/ide/idea_spec.rb Fri Sep 27 00:27:47 2013
@@ -333,8 +333,9 @@ describe Buildr::IntellijIdea do
describe "using add_gwt_facet that detects gwt sdk" do
before do
+ artifact('com.google.gwt:gwt-dev:jar:2.5.1-not-a-release') { |task| write task.name }
@foo = define "foo" do
- compile.with 'com.google.gwt:gwt-dev:jar:2.5.1'
+ compile.with 'com.google.gwt:gwt-dev:jar:2.5.1-not-a-release'
iml.add_gwt_facet("com.biz.MyModule" => true)
end
invoke_generate_task
@@ -345,7 +346,7 @@ describe Buildr::IntellijIdea do
facet_xpath = ensure_facet_xpath(doc, 'gwt', 'GWT')
setting_xpath = "#{facet_xpath}/configuration/setting"
doc.should have_xpath("#{setting_xpath}[@name='gwtSdkType', value='maven']")
- doc.should have_xpath("#{setting_xpath}[@name='gwtSdkUrl', value='$MAVEN_REPOSITORY$/com/google/gwt/gwt-dev/2.5.1']")
+ doc.should have_xpath("#{setting_xpath}[@name='gwtSdkUrl', value='$MAVEN_REPOSITORY$/com/google/gwt/gwt-dev/2.5.1-not-a-release']")
end
end