<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,9 @@ require 'fileutils'
 # This is more or less what I would refer to as an integration test. It tests
 # the complete process from project creation to running the generated functional
 # tests.
+# To run the full test suite, an EXTJS_LOCATION environment variable must be 
+# set to point to a filesystem path with the extracted Ext JS framework to be
+# tested against 
 class ExtScaffoldTest &lt; Test::Unit::TestCase
 
   def test_project_creation_and_demo_scaffold
@@ -24,6 +27,18 @@ class ExtScaffoldTest &lt; Test::Unit::TestCase
     # migrate DB
     `cd ext_scaffold_demo; rake db:migrate`
     assert_equal 0, $?
+
+    # inject EXT into demo project if available
+    if ENV['EXTJS_LOCATION'] &amp;&amp; File.directory?(ENV['EXTJS_LOCATION'])
+      ext_base_path = './ext_scaffold_demo/public/ext'
+      FileUtils.ln_s ENV['EXTJS_LOCATION'], ext_base_path
+      # check availability of neccessary files
+      %w(examples/shared/icons/fam/add.gif examples/shared/icons/fam/delete.gif examples/shared/icons/fam/cog.png resources/images/default/shared/glass-bg.gif).each do |f|
+        assert File.readable?(File.join(ext_base_path,f)), &quot;#{f} is not availble in your Ext installation&quot;
+      end
+    else
+      flunk &quot;Test suite can not be completed without EXTJS_LOCATION pointing to valid Ext JS installation&quot;
+    end
     
     # run functional tests on generated scaffold
     `cd ext_scaffold_demo; rake`</diff>
      <filename>test/ext_scaffold_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5bc843e335caed8774abdfaa6882704206a023eb</id>
    </parent>
  </parents>
  <author>
    <name>martinrehfeld</name>
    <email>martinrehfeld@ff3fcdfe-c7f7-449c-8fb0-feba545ac656</email>
  </author>
  <url>http://github.com/drudru/ext_scaffold/commit/a49ba780277a3c5fe52f6cdf3ab3b8f86530cb63</url>
  <id>a49ba780277a3c5fe52f6cdf3ab3b8f86530cb63</id>
  <committed-date>2008-01-24T12:20:43-08:00</committed-date>
  <authored-date>2008-01-24T12:20:43-08:00</authored-date>
  <message>test now injects ExtJS framework into demo project and checks for required assets

git-svn-id: http://rug-b.rubyforge.org/svn/ext_scaffold@98 ff3fcdfe-c7f7-449c-8fb0-feba545ac656</message>
  <tree>0efae03ee332a1fa067ddcccf26058e6673467f7</tree>
  <committer>
    <name>martinrehfeld</name>
    <email>martinrehfeld@ff3fcdfe-c7f7-449c-8fb0-feba545ac656</email>
  </committer>
</commit>
