{"action":"closed","issue":{"url":"https://api.github.com/repos/biola/rack-cas/issues/45","labels_url":"https://api.github.com/repos/biola/rack-cas/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/biola/rack-cas/issues/45/comments","events_url":"https://api.github.com/repos/biola/rack-cas/issues/45/events","html_url":"https://github.com/biola/rack-cas/issues/45","id":107513137,"number":45,"title":"`ArgumentError: invalid setting: fake` on asset precompile","user":{"login":"RyanSnodgrass","id":7104855,"avatar_url":"https://avatars.githubusercontent.com/u/7104855?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanSnodgrass","html_url":"https://github.com/RyanSnodgrass","followers_url":"https://api.github.com/users/RyanSnodgrass/followers","following_url":"https://api.github.com/users/RyanSnodgrass/following{/other_user}","gists_url":"https://api.github.com/users/RyanSnodgrass/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanSnodgrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanSnodgrass/subscriptions","organizations_url":"https://api.github.com/users/RyanSnodgrass/orgs","repos_url":"https://api.github.com/users/RyanSnodgrass/repos","events_url":"https://api.github.com/users/RyanSnodgrass/events{/privacy}","received_events_url":"https://api.github.com/users/RyanSnodgrass/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-21T13:34:05Z","updated_at":"2015-10-08T15:08:09Z","closed_at":"2015-10-08T15:08:09Z","body":"We call our staging environment 'test' and run it as close to production. Since fake cas is enabled by default on the test environment, we're trying to turn it off by explicitly overriding it in the `environment/test.rb`\r\n```ruby\r\n# config/environments/test.rb\r\nconfig.rack_cas.fake = false\r\n```\r\nThis brings an argument error when precompiling the assets\r\n```\r\n$ RAILS_ENV=test bin/rake assets:precompile --trace\r\n** Invoke assets:precompile (first_time)\r\n** Invoke assets:environment (first_time)\r\n** Execute assets:environment\r\n** Invoke environment (first_time)\r\n** Execute environment\r\nrake aborted!\r\nArgumentError: invalid setting: fake\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rack-cas-0.10.1/lib/rack-cas/configuration.rb:24:in `block in update'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rack-cas-0.10.1/lib/rack-cas/configuration.rb:22:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rack-cas-0.10.1/lib/rack-cas/configuration.rb:22:in `update'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rack-cas-0.10.1/lib/rack/cas.rb:12:in `initialize'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:43:in `new'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:43:in `build'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:118:in `block in build'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:118:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:118:in `inject'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/actionpack-4.0.2/lib/action_dispatch/middleware/stack.rb:118:in `build'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/engine.rb:495:in `app'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application/finisher.rb:34:in `block in <module:Finisher>'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:180:in `each'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'\r\n/vagrant/fenrir/config/environment.rb:5:in `<top (required)>'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:189:in `require'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'\r\n/usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/usr/local/rvm/gems/ruby-2.0.0-p353/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\nbin/rake:4:in `<main>'\r\nTasks: TOP => environment\r\n```\r\n\r\nIs there a way to turn off fake cas in the test environment?"}}