🟢 create.rb for new files

🟢 destroy.rb for new files
🟢 edit.rb for new files
🟢 index.rb for new files
🟢 new.rb for new files
🟢 update.rb for new files
🟢 destroy.html.erb for new files
🟢 edit.html.erb for new files
🟢 index.html.erb for new files
🟢 new.html.erb for new files
🟢 destroy.rb for new files
🟢 edit.rb for new files
🟢 index.rb for new files
🟢 new.rb for new files

The provided Git diff contains the addition of several new files representing different actions for the admin/players section of the application. These new files include create.rb, destroy.rb, edit.rb, index.rb, new.rb, update.rb, as well as corresponding HTML erb templates and view files. Additionally, the routes.rb file has been modified to include routes for the new admin player actions. Finally, there are new spec files for testing each of the new actions.
This commit is contained in:
2024-10-02 03:14:18 -07:00
parent f1889dd885
commit 1a9b3496e1
21 changed files with 236 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::Create do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::Destroy do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::Edit do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::Index do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::New do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end
+10
View File
@@ -0,0 +1,10 @@
# frozen_string_literal: true
RSpec.describe EuchreCamp::Actions::Admin::Players::Update do
let(:params) { Hash[] }
it "works" do
response = subject.call(params)
expect(response).to be_successful
end
end