mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
25 lines
655 B
Ruby
25 lines
655 B
Ruby
require "rails_helper"
|
|
|
|
# root GET / home#index
|
|
|
|
RSpec.describe "Home" do
|
|
context "when signed out" do
|
|
it "needs testing when multiuser is enabled"
|
|
end
|
|
|
|
context "when signed in" do
|
|
describe "GET /" do
|
|
it "redirects to library creation if there isn't one already", :as_member do
|
|
get "/"
|
|
expect(response).to redirect_to("/libraries/new")
|
|
end
|
|
|
|
it "shows the homepage if a library has been created", :as_member do
|
|
create(:library)
|
|
get "/"
|
|
expect(response).to have_http_status(:success)
|
|
end
|
|
end
|
|
end
|
|
end
|