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
Add integration tests for sinatra
foca (author)
Mon Dec 29 00:41:50 -0800 2008
commit  499dcefefe929e58a3adf802410dc5bb94a70862
tree    bbc78af3c7d210976824f036f5ba91406da99029
parent  33e853710eb61616588f3fab0b6ffbfad1dcd733
...
108
109
110
111
 
112
113
114
115
116
 
 
 
 
 
 
117
118
119
...
108
109
110
 
111
112
113
114
115
 
116
117
118
119
120
121
122
123
124
0
@@ -108,12 +108,17 @@ namespace :spec do
0
   task :integration do
0
     Dir.chdir "spec/integration/rails" do
0
       result = system "rake test:integration"
0
-      raise "Tests failed" unless result
0
+      raise "Integration tests failed for rails" unless result
0
     end
0
     
0
     Dir.chdir "spec/integration/merb" do
0
       result = system "rake spec"
0
-      raise "Tests failed" unless result
0
+      raise "Integration tests failed for merb" unless result
0
+    end
0
+    
0
+    Dir.chdir "spec/integration/sinatra" do
0
+      result = system "rake test"
0
+      raise "Integration tests failed for sinatra" unless result
0
     end
0
   end
0
 end

Comments