Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 tests with OmniAuth::Strategies::OAuth2#authorize_params failing #37

Closed
pravi opened this issue May 27, 2013 · 1 comment
Closed

3 tests with OmniAuth::Strategies::OAuth2#authorize_params failing #37

pravi opened this issue May 27, 2013 · 1 comment

Comments

@pravi
Copy link

pravi commented May 27, 2013

pravi@savannah:/media/forge/debian/diaspora/ruby-omniauth-oauth2-1.1.1$ ~/.multiruby/install/v1_9_3_194/bin/ruby -S bundle install
fatal: Not a git repository (or any parent up to mount point /media/forge)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /media/forge)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: Not a git repository (or any parent up to mount point /media/forge)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
/home/pravi/.multiruby/install/v1_9_3_194/lib/ruby/1.9.1/yaml.rb:56:in <top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. Fetching source index from http://rubygems.org/ Resolving dependencies............. Using addressable (2.3.4) Using bundler (1.3.5) Using coderay (1.0.9) Using crack (0.3.2) Using diff-lcs (1.2.4) Installing multipart-post (1.2.0) Installing faraday (0.8.7) Using ffi (1.8.1) Using formatador (0.2.4) Using growl (1.0.3) Using rb-fsevent (0.9.3) Using rb-inotify (0.9.0) Using rb-kqueue (0.2.0) Using listen (1.1.3) Using lumberjack (1.0.3) Using method_source (0.8.1) Using slop (3.4.5) Using pry (0.9.12.2) Using thor (0.18.1) Using guard (1.8.0) Using guard-bundler (1.0.0) Using rspec-core (2.13.1) Using rspec-expectations (2.13.0) Using rspec-mocks (2.13.1) Using rspec (2.13.0) Using guard-rspec (3.0.0) Using hashie (2.0.5) Installing httpauth (0.2.0) Installing multi_json (1.7.4) Installing jwt (0.1.8) Using rack (1.5.2) Installing oauth2 (0.8.1) Using omniauth (1.1.4) Using omniauth-oauth2 (1.1.1) from source at /media/forge/debian/diaspora/ruby-omniauth-oauth2-1.1.1 Using rack-test (0.6.2) Using simplecov-html (0.7.1) Using simplecov (0.7.1) Using webmock (1.11.0) Your bundle is complete! Usebundle show [gemname]to see where a bundled gem is installed. pravi@savannah:/media/forge/debian/diaspora/ruby-omniauth-oauth2-1.1.1$ ~/.multiruby/install/v1_9_3_194/bin/ruby -S rspec /home/pravi/.multiruby/install/v1_9_3_194/lib/ruby/1.9.1/yaml.rb:56:in<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
..FFF..

Failures:

  1. OmniAuth::Strategies::OAuth2#authorize_params should include any authorize params passed in the :authorize_params option
    Failure/Error: instance.authorize_params.should == {'foo' => 'bar', 'baz' => 'zip', 'state' => '123'}
    expected: {"foo"=>"bar", "baz"=>"zip", "state"=>"123"}
    got: #<OmniAuth::Strategy::Options baz="zip" foo="bar" state="0e95d225e8d9870c202de6af6c7d94b5f3926cdec8313c47"> (using ==)
    Diff:
    @@ -1,4 +1,4 @@
    "baz" => "zip",
    "foo" => "bar",
    -"state" => "123"
    +"state" => "0e95d225e8d9870c202de6af6c7d94b5f3926cdec8313c47"
 # ./spec/omniauth/strategies/oauth2_spec.rb:34:in `block (3 levels) in <top (required)>'
  1. OmniAuth::Strategies::OAuth2#authorize_params should include top-level options that are marked as :authorize_options
    Failure/Error: instance.authorize_params.should == {'scope' => 'bar', 'foo' => 'baz', 'state' => '123'}
    expected: {"scope"=>"bar", "foo"=>"baz", "state"=>"123"}
    got: #<OmniAuth::Strategy::Options foo="baz" scope="bar" state="79e663b117ea4046d53dbec9597dae980db52c1da92e1da8"> (using ==)
    Diff:
    @@ -1,4 +1,4 @@
    "foo" => "baz",
    "scope" => "bar",
    -"state" => "123"
    +"state" => "79e663b117ea4046d53dbec9597dae980db52c1da92e1da8"
 # ./spec/omniauth/strategies/oauth2_spec.rb:39:in `block (3 levels) in <top (required)>'
  1. OmniAuth::Strategies::OAuth2#authorize_params should include random state in the authorize params
    Failure/Error: instance.session['omniauth.state'].should == instance.authorize_params['state']
    expected: "ee46136d83472f91fe0d92969a795291ff603af9e672e599"
    got: "68e620375b1657cfa1639316ebe697664fb3ead7868bc6f6" (using ==)

    ./spec/omniauth/strategies/oauth2_spec.rb:46:in `block (3 levels) in <top (required)>'

Finished in 0.02004 seconds
7 examples, 3 failures

Failed examples:

rspec ./spec/omniauth/strategies/oauth2_spec.rb:32 # OmniAuth::Strategies::OAuth2#authorize_params should include any authorize params passed in the :authorize_params option
rspec ./spec/omniauth/strategies/oauth2_spec.rb:37 # OmniAuth::Strategies::OAuth2#authorize_params should include top-level options that are marked as :authorize_options
rspec ./spec/omniauth/strategies/oauth2_spec.rb:42 # OmniAuth::Strategies::OAuth2#authorize_params should include random state in the authorize params

@pravi
Copy link
Author

pravi commented Jun 12, 2013

It needs an oauth2 service to test, closing.

@pravi pravi closed this as completed Jun 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant