test/lib/omniauth/strategies/gplus_test.rb in omniauth-gplus-1.2.0 vs test/lib/omniauth/strategies/gplus_test.rb in omniauth-gplus-2.0.0.beta1

- old
+ new

@@ -40,22 +40,22 @@ expected = nil actual = strategy.options['request_visible_actions'] assert_equal(expected, actual) end - def test_state_state_is_included_in_request_params_when_present + def test_state_state_is_not_included_in_request_params_when_present expected = 'some_state' @request.stubs(:params).returns({ 'state' => expected }) - assert_equal expected, strategy.authorize_params[:state] + refute_equal expected, strategy.authorize_params[:state] end - def test_stores_state_in_the_session_when_present + def test_do_not_store_state_in_the_session_when_present expected = 'some_state' @request.stubs(:params).returns({ 'state' => expected }) refute_empty strategy.authorize_params['state'] - assert_equal expected, strategy.authorize_params[:state] + refute_equal expected, strategy.authorize_params[:state] refute_empty strategy.session['omniauth.state'] - assert_equal expected, strategy.session['omniauth.state'] + refute_equal expected, strategy.session['omniauth.state'] end def test_that_it_has_a_version_number refute_nil OmniAuth::GPlus::VERSION end