Permalink
Browse files

RSpec touch up.

  • Loading branch information...
1 parent 5ad0d99 commit 53f8878a42068be671873b2baead31bcb557f94d Brooke Kuhlmann committed May 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/spec_helper.rb
View
@@ -9,18 +9,18 @@ class SetupHelper < Thor
include Thor::Actions
end
-@tmp_path = File.join File.dirname(__FILE__), "tmp"
-@helper = SetupHelper.new
+tmp_path = File.join File.dirname(__FILE__), "tmp"
+helper = SetupHelper.new
RSpec.configure do |config|
config.before :suite do
- @helper.remove_file @tmp_path, verbose: false
+ helper.remove_file tmp_path, verbose: false
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|file| require file}
end
config.after :suite do
- @helper.remove_file @tmp_path, verbose: false
+ helper.remove_file tmp_path, verbose: false
end
config.mock_with :rspec

0 comments on commit 53f8878

Please sign in to comment.