mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
24 lines
528 B
Ruby
24 lines
528 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "Libraries" do
|
|
before :all do
|
|
@library = create(:library) do |library|
|
|
create_list(:model, 13, library: library)
|
|
end
|
|
end
|
|
|
|
describe "GET /libraries" do
|
|
it "redirects to models index" do
|
|
get "/libraries"
|
|
expect(response).to have_http_status(:redirect)
|
|
end
|
|
end
|
|
|
|
describe "GET /libraries/1" do
|
|
it "redirects to models index with library filter" do
|
|
get "/libraries/1"
|
|
expect(response).to have_http_status(:redirect)
|
|
end
|
|
end
|
|
end
|