Skip to content

Commit

Permalink
Update spec_helper to complain about missing gems
Browse files Browse the repository at this point in the history
  • Loading branch information
aflatter committed Jun 30, 2010
1 parent f76b02e commit 398cced
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions oauth2-server/spec/spec_helper.rb
Expand Up @@ -4,12 +4,22 @@
))

require "rubygems"
require "bundler"
Bundler.setup

begin
require "bundler"
Bundler.setup
rescue LoadError => e
puts 'Bundler not found. Please install bundler with the command gem install bundler'
end

begin
require 'rspec'
require 'rspec/autorun'
rescue LoadError => e
puts 'RSpec not found. Please install rspec with command bundle install'
end

require 'oauth2/server'
require 'rspec'
require 'rspec/autorun'

Dir.glob(File.dirname(__FILE__) + "/support/**/*.rb").each do |file|
require file
Expand Down

0 comments on commit 398cced

Please sign in to comment.