Remove warnings "instance variable @{ivar} not initialized" in spec
This commit is contained in:
parent
960c2a4913
commit
e3141b993d
|
@ -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 @@ describe OmniAuth::Strategy do
|
|||
end
|
||||
|
||||
describe "#call" do
|
||||
before(:all) do
|
||||
@options = nil
|
||||
end
|
||||
|
||||
let(:strategy){ ExampleStrategy.new(app, @options || {}) }
|
||||
|
||||
context "omniauth.origin" do
|
||||
|
|
Loading…
Reference in New Issue