Permalink
Browse files

removing duplicate gem install check

  • Loading branch information...
1 parent e6f1d4e commit eb07115ff122d97654b45cfb19f18b7ece2d139d @ryankinderman committed Mar 4, 2011
Showing with 1 addition and 10 deletions.
  1. +1 −10 lib/spectie/rails_story_example_group.rb
@@ -18,16 +18,7 @@ def method_missing(*args, &block)
end
end
###################################################################################
-begin
- spec_rails_path = "spec/rails"
- require spec_rails_path
-rescue LoadError => e
- if e.message =~ /#{Regexp.escape(spec_rails_path)}$/
- raise "RSpec-Rails not available. Install it with gem install rspec-rails"
- else
- raise e
- end
-end
+require "spec/rails"
ActionController::IntegrationTest.class_eval do
alias_method :orig_initialize, :initialize

0 comments on commit eb07115

Please sign in to comment.