Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RSpec touch up.

  • Loading branch information...
commit 53f8878a42068be671873b2baead31bcb557f94d 1 parent 5ad0d99
Brooke Kuhlmann authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/spec_helper.rb
View
8 spec/spec_helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.