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
Allow the running of Rails/Merb integration specs independently
joshknowles (author)
Mon Dec 29 19:07:56 -0800 2008
commit  b222d3fde3983b4fe7f8dfa0f0c3959494e3a149
tree    0abf21700cddf23ef75f799f9906e15edbc870e1
parent  7044eb58634cd55c4447039e80ac14cbb01e0215
...
29
30
31
32
 
33
34
35
...
105
106
107
108
109
110
111
 
 
 
 
 
 
 
 
 
112
113
114
115
116
 
 
 
 
 
 
 
117
118
119
...
29
30
31
 
32
33
34
35
...
105
106
107
 
 
 
 
108
109
110
111
112
113
114
115
116
117
 
 
 
 
118
119
120
121
122
123
124
125
126
127
0
@@ -29,7 +29,7 @@ spec = Gem::Specification.new do |s|
0
 
0
   # Dependencies
0
   s.add_dependency "nokogiri", ">= 1.1.0"
0
-  
0
+
0
   s.rubyforge_project = "webrat"
0
 end
0
 
0
@@ -105,15 +105,23 @@ 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
+  task :integration => ["integration:rails", "integration:merb"]
0
+
0
+  namespace :integration do
0
+    desc "Run the Rails integration specs"
0
+    task :rails 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
-    
0
-    Dir.chdir "spec/integration/merb" do
0
-      result = system "rake spec"
0
-      raise "Tests failed" unless result
0
+
0
+    desc "Run the Merb integration specs"
0
+    task :merb do
0
+      Dir.chdir "spec/integration/merb" do
0
+        result = system "rake spec"
0
+        raise "Tests failed" unless result
0
+      end
0
     end
0
   end
0
 end

Comments