Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Allow rails 3.1 testing, remove explicit dep on redgreen.

  • Loading branch information...
commit 7d5eebc85fbd689632ba59adc2e985513bc35635 1 parent 77c3ce7
Christopher Meiklejohn authored July 29, 2011
9  paul_revere.gemspec
@@ -21,20 +21,17 @@ Gem::Specification.new do |s|
21 21
     s.specification_version = 3
22 22
 
23 23
     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24  
-      s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
  24
+      s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
25 25
       s.add_development_dependency(%q<bourne>, [">= 0"])
26 26
       s.add_development_dependency(%q<shoulda>, [">= 0"])
27  
-      s.add_development_dependency(%q<redgreen>, [">= 0"])
28 27
     else
29  
-      s.add_dependency(%q<rails>, ["~> 3.0.0"])
  28
+      s.add_dependency(%q<rails>, [">= 3.0.0"])
30 29
       s.add_dependency(%q<bourne>, [">= 0"])
31 30
       s.add_dependency(%q<shoulda>, [">= 0"])
32  
-      s.add_dependency(%q<redgreen>, [">= 0"])
33 31
     end
34 32
   else
35  
-    s.add_dependency(%q<rails>, ["~> 3.0.0"])
  33
+    s.add_dependency(%q<rails>, [">= 3.0.0"])
36 34
     s.add_dependency(%q<bourne>, [">= 0"])
37 35
     s.add_dependency(%q<shoulda>, [">= 0"])
38  
-    s.add_dependency(%q<redgreen>, [">= 0"])
39 36
   end
40 37
 end
4  test/test_helper.rb
@@ -3,8 +3,10 @@
3 3
 require 'rubygems'
4 4
 require 'rails/all'
5 5
 require 'shoulda'
  6
+require 'shoulda/rails'
6 7
 require 'bourne'
7  
-require 'redgreen'
  8
+
  9
+begin require 'redgreen'; rescue LoadError; end
8 10
 
9 11
 module PaulRevere
10 12
   class Application < Rails::Application

0 notes on commit 7d5eebc

Please sign in to comment.
Something went wrong with that request. Please try again.