public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
Adding a Rails app for integration testing
brynary (author)
Sun Dec 28 22:11:41 -0800 2008
commit  39e0200608ea9fc6b6e5f015b2b1592da8154c85
tree    9665d41dc0e8d0fe89ca73d5d36bc42c7c36b546
parent  b4dd15025018421956da7f1f94a284baec950e9a
...
103
104
105
 
 
 
 
 
 
 
 
 
 
106
107
108
109
 
110
...
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
 
118
119
120
0
@@ -103,6 +103,16 @@ task :prepare do
0
   system "ln -s ../../../../.. ./spec/integration/rails/vendor/plugins/webrat"
0
 end
0
 
0
+namespace :spec do
0
+  desc "Run the integration specs"
0
+  task :integration do
0
+    Dir.chdir "spec/integration/rails" do
0
+      result = system "rake test:integration"
0
+      raise "Tests failed" unless result
0
+    end
0
+  end
0
+end
0
+
0
 task :default => :spec
0
 
0
-task :precommit => ["spec", "spec:jruby"]
0
\ No newline at end of file
0
+task :precommit => ["spec", "spec:jruby", "spec:integration"]
0
\ No newline at end of file

Comments