Permalink
Browse files

using pry

  • Loading branch information...
1 parent d68cc6c commit 567f2947c7759925fa5d9a271c6e22511ea85195 @bradrobertson bradrobertson committed May 31, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −0 apartment.gemspec
  2. +4 −1 spec/spec_helper.rb
View
1 apartment.gemspec
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
s.add_dependency 'activerecord', '>= 3.1.2' # must be >= 3.1.2 due to bug in prepared_statements
s.add_dependency 'rack', '>= 1.3.6'
+ s.add_development_dependency 'pry', '~> 0.9.9'
s.add_development_dependency 'rails', '>= 3.1.2'
s.add_development_dependency 'rake', '~> 0.9.2'
s.add_development_dependency 'sqlite3'
View
5 spec/spec_helper.rb
@@ -7,6 +7,9 @@
require "rspec/rails"
require 'capybara/rspec'
require 'capybara/rails'
+require 'pry'
+
+silence_warnings{ IRB = Pry }
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
@@ -27,7 +30,7 @@
# Necessary as some tests will leak things like current_schema into the next test
ActiveRecord::Base.clear_all_connections!
end
-
+
config.after(:each) do
Apartment::Test.reset
end

0 comments on commit 567f294

Please sign in to comment.