spec/omniauth/strategies/freee_spec.rb in omniauth-freee-0.0.4 vs spec/omniauth/strategies/freee_spec.rb in omniauth-freee-1.0.0

- old
+ new

@@ -61,14 +61,14 @@ expect(access_token).to receive(:get).with('/api/1/users/me?companies=true').and_return(response) expect(subject.raw_info).to eq(parsed_response) end end - # describe '#callback_url' do - # it 'is a combination of host, script name, and callback path' do - # allow(subject).to receive(:full_host).and_return('https://example.com') - # allow(subject).to receive(:script_name).and_return('/sub_uri') + describe '#callback_url' do + it 'is a combination of host, script name, and callback path' do + allow(subject).to receive(:full_host).and_return('https://example.com') + allow(subject).to receive(:script_name).and_return('/sub_uri') - # expect(subject.callback_url).to eq('https://example.com/sub_uri/auth/freee/callback') - # end - # end + expect(subject.callback_url).to eq('https://example.com/sub_uri/auth/freee/callback') + end + end end