intridea/omniauth — pull request #521 by mkdynamic (2011-10-26 06:31:30+00:00)
Title: Address jruby spec issue

Looks like the strategy_spec is leaving the test_mode to true.

This is actually causing the specs to fail for all rubies, it's just the load order of files is different under jruby. JRuby returns file listings in different order than MRI:

```bash
[mbpro:~/documents/mkdynamic/omniauth] ∞ master
→ rvm use jruby-1.6.4
[mbpro:~/documents/mkdynamic/omniauth] ∞ master
→ bundle exec rake
/Users/markdodwell/.rvm/rubies/jruby-1.6.4/bin/jruby -S bundle exec rspec ./spec/omniauth_spec.rb ./spec/omniauth/auth_hash_spec.rb ./spec/omniauth/builder_spec.rb ./spec/omniauth/strategy_spec.rb ./spec/omniauth/strategies/developer_spec.rb
```

Under 1.9.2/1.8.7:

```bash
[mbpro:~/documents/mkdynamic/omniauth] ∞ master
→ rvm use 1.8.7
Using /Users/markdodwell/.rvm/gems/ruby-1.8.7-p352
[mbpro:~/documents/mkdynamic/omniauth] ∞ master
→ bundle exec rake
/Users/markdodwell/.rvm/rubies/ruby-1.8.7-p352/bin/ruby -S bundle exec rspec ./spec/omniauth/auth_hash_spec.rb ./spec/omniauth/builder_spec.rb ./spec/omniauth/strategies/developer_spec.rb ./spec/omniauth/strategy_spec.rb ./spec/omniauth_spec.rb
```

Not sure if this patch is the right fix, but hopefully explains the issue.