Permalink
Browse files

Setup test environment

  • Loading branch information...
1 parent 9cc153c commit a6b4dae53f01cb42ca25bff56da869829d20e080 @bcardarella committed Apr 4, 2011
Showing with 24 additions and 0 deletions.
  1. +1 −0 .rspec
  2. +1 −0 .rvmrc
  3. +17 −0 spec/spec_helper.rb
  4. +5 −0 valid_attribute.gemspec
View
1 .rspec
@@ -0,0 +1 @@
+--color
View
1 .rvmrc
@@ -0,0 +1 @@
+rvm --create default@valid_attribute > /dev/null
View
17 spec/spec_helper.rb
@@ -0,0 +1,17 @@
+require 'rubygems'
+require 'bundler'
+Bundler.setup
+
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+require 'ruby-debug'
+require 'valid_attribute'
+require 'rspec'
+require 'rspec/autorun'
+require 'bourne'
+
+RSpec.configure do |config|
+ config.mock_with :mocha
+end
+
+
View
5 valid_attribute.gemspec
@@ -21,4 +21,9 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec'
s.add_development_dependency 'bourne'
+ if RUBY_VERSION >= '1.9'
+ s.add_development_dependency 'ruby-debug19'
+ else
+ s.add_development_dependency 'ruby-debug'
+ end
end

0 comments on commit a6b4dae

Please sign in to comment.