-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
15 additions
and
342 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe BroadcastChannel do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe JobChannel do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe TheMovieDb::Search::Movie do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe TheMovieDb::Search::Multi do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe TheMovieDb::Tv do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe ProcessComponent, type: :component do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
|
||
# it "renders something useful" do | ||
# expect( | ||
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html | ||
# ).to include( | ||
# "Hello, components!" | ||
# ) | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe RipProcessComponent, type: :component do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
|
||
# it "renders something useful" do | ||
# expect( | ||
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html | ||
# ).to include( | ||
# "Hello, components!" | ||
# ) | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe ScanPlexProcessComponent, type: :component do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
|
||
# it "renders something useful" do | ||
# expect( | ||
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html | ||
# ).to include( | ||
# "Hello, components!" | ||
# ) | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe UploadProcessComponent, type: :component do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
|
||
# it "renders something useful" do | ||
# expect( | ||
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html | ||
# ).to include( | ||
# "Hello, components!" | ||
# ) | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe VideoProgressComponent, type: :component do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
|
||
# it "renders something useful" do | ||
# expect( | ||
# render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html | ||
# ).to include( | ||
# "Hello, components!" | ||
# ) | ||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,3 @@ | |
# end | ||
# end | ||
# end | ||
RSpec.describe DisksHelper do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,3 @@ | |
# end | ||
# end | ||
# end | ||
RSpec.describe EpisodesHelper do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,3 @@ | |
# end | ||
# end | ||
# end | ||
RSpec.describe SeasonsHelper do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe 'Config::MakeMkvs' do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe 'Disks' do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe '/users' do | ||
before { create(:config_make_mkv) } | ||
|
||
let(:valid_attributes) do | ||
skip('Add a hash of attributes valid for your model') | ||
end | ||
|
||
let(:invalid_attributes) do | ||
skip('Add a hash of attributes invalid for your model') | ||
end | ||
|
||
describe 'GET /index' do | ||
it 'renders a successful response' do | ||
User.create! valid_attributes | ||
get users_url | ||
expect(response).to be_successful | ||
end | ||
end | ||
|
||
describe 'GET /show' do | ||
it 'renders a successful response' do | ||
user = User.create! valid_attributes | ||
get user_url(user) | ||
expect(response).to be_successful | ||
end | ||
end | ||
|
||
describe 'GET /new' do | ||
it 'renders a successful response' do | ||
get new_user_url | ||
expect(response).to be_successful | ||
end | ||
end | ||
|
||
describe 'GET /edit' do | ||
it 'render a successful response' do | ||
user = User.create! valid_attributes | ||
get edit_user_url(user) | ||
expect(response).to be_successful | ||
end | ||
end | ||
|
||
describe 'POST /create' do | ||
context 'with valid parameters' do | ||
it 'creates a new User' do | ||
expect do | ||
post users_url, params: { user: valid_attributes } | ||
end.to change(User, :count).by(1) | ||
end | ||
|
||
it 'redirects to the created user' do | ||
post users_url, params: { user: valid_attributes } | ||
expect(response).to redirect_to(user_url(User.last)) | ||
end | ||
end | ||
|
||
context 'with invalid parameters' do | ||
it 'does not create a new User' do | ||
expect do | ||
post users_url, params: { user: invalid_attributes } | ||
end.not_to change(User, :count) | ||
end | ||
|
||
it "renders a successful response (i.e. to display the 'new' template)" do | ||
post users_url, params: { user: invalid_attributes } | ||
expect(response).to be_successful | ||
end | ||
end | ||
end | ||
|
||
describe 'PATCH /update' do | ||
context 'with valid parameters' do | ||
let(:new_attributes) do | ||
skip('Add a hash of attributes valid for your model') | ||
end | ||
|
||
it 'updates the requested user' do | ||
user = User.create! valid_attributes | ||
patch user_url(user), params: { user: new_attributes } | ||
user.reload | ||
skip('Add assertions for updated state') | ||
end | ||
|
||
it 'redirects to the user' do | ||
user = User.create! valid_attributes | ||
patch user_url(user), params: { user: new_attributes } | ||
user.reload | ||
expect(response).to redirect_to(user_url(user)) | ||
end | ||
end | ||
|
||
context 'with invalid parameters' do | ||
it "renders a successful response (i.e. to display the 'edit' template)" do | ||
user = User.create! valid_attributes | ||
patch user_url(user), params: { user: invalid_attributes } | ||
expect(response).to be_successful | ||
end | ||
end | ||
end | ||
|
||
describe 'DELETE /destroy' do | ||
it 'destroys the requested user' do | ||
user = User.create! valid_attributes | ||
expect do | ||
delete user_url(user) | ||
end.to change(User, :count).by(-1) | ||
end | ||
|
||
it 'redirects to the users list' do | ||
user = User.create! valid_attributes | ||
delete user_url(user) | ||
expect(response).to redirect_to(users_url) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe 'Videos' do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end |
Oops, something went wrong.