Permalink
Browse files

Remove warnings "instance variable @{ivar} not initialized" in spec

  • Loading branch information...
1 parent 960c2a4 commit e3141b993da6738ab9c2bd4388187748c7ce35f6 @kachick kachick committed with sferik Jan 10, 2013
Showing with 8 additions and 0 deletions.
  1. +4 −0 spec/helper.rb
  2. +4 −0 spec/omniauth/strategy_spec.rb
View
@@ -27,6 +27,10 @@ class ExampleStrategy
option :name, 'test'
def call(env); self.call!(env) end
attr_reader :last_env
+ def initialize(*args, &block)
+ super
+ @fail = nil
+ end
def request_phase
@fail = fail!(options[:failure]) if options[:failure]
@last_env = env
@@ -246,6 +246,10 @@ def make_env(path = '/auth/test', props = {})
end
describe "#call" do
+ before(:all) do
+ @options = nil
+ end
+
let(:strategy){ ExampleStrategy.new(app, @options || {}) }
context "omniauth.origin" do

0 comments on commit e3141b9

Please sign in to comment.