Created
February 3, 2015 02:54
-
-
Save anonymous/b5af8b61c22c1e26ebec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#spec/requests/posts_spec.rb | |
require 'rails_helper' | |
RSpec.describe "Posts", :type => :request do | |
describe "GET /posts" do | |
it "works! (now write some real specs)" do | |
Apartment::Tenant.create('subdomain') | |
Apartment::Tenant.switch('subdomain') | |
get posts_path | |
expect(response).to have_http_status(200) | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Posts GET /posts works! (now write some real specs) | |
Failure/Error: get posts_path | |
Apartment::SchemaNotFound: | |
One of the following schema(s) is invalid: www, "subdomain" | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/apartment-0.26.1/lib/apartment/adapters/postgresql_adapter.rb:92:in `rescue in connect_to_new' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/apartment-0.26.1/lib/apartment/adapters/postgresql_adapter.rb:85:in `connect_to_new' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/apartment-0.26.1/lib/apartment/adapters/abstract_adapter.rb:100:in `switch' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/apartment-0.26.1/lib/apartment/elevators/generic.rb:20:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/etag.rb:24:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/conditionalget.rb:25:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/head.rb:13:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:in `context' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/web-console-2.0.0/lib/action_dispatch/debug_exceptions.rb:18:in `middleware_call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/web-console-2.0.0/lib/action_dispatch/debug_exceptions.rb:13:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/runtime.rb:18:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/lock.rb:17:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb:113:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-1.6.0/lib/rack/sendfile.rb:113:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/railties-4.2.0/lib/rails/application.rb:164:in `call' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-test-0.6.3/lib/rack/mock_session.rb:30:in `request' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-test-0.6.3/lib/rack/test.rb:244:in `process_request' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/rack-test-0.6.3/lib/rack/test.rb:124:in `request' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/testing/integration.rb:297:in `process' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/testing/integration.rb:32:in `get' | |
# /Users/joshchernoff/.rvm/gems/ruby-2.1.5/gems/actionpack-4.2.0/lib/action_dispatch/testing/integration.rb:344:in `block (2 levels) in <module:Runner>' | |
# ./spec/requests/posts_spec.rb:8:in `block (3 levels) in <top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment