spec/spec_helper.rb in add-to-org-2.2.1 vs spec/spec_helper.rb in add-to-org-3.0.0
- old
+ new
@@ -1,7 +1,8 @@
require "bundler/setup"
require 'fileutils'
+require 'securerandom'
ENV['RACK_ENV'] = 'test'
ENV['GITHUB_CLIENT_ID'] = "CLIENT_ID"
ENV['GITHUB_CLIENT_SECRET'] = 'CLIENT_SECRET'
$:.push File.join(File.dirname(__FILE__), '..', 'lib')
@@ -23,10 +24,9 @@
end
def fixture(fixture)
File.open(fixture_path(fixture)).read
end
-
def with_env(key, value)
old_env = ENV[key]
ENV[key] = value
yield