-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from tamu-edu-students/increasing-coverage-mea…
…sure improved test coverage rating by removing unused logic and adding mor…
- Loading branch information
Showing
10 changed files
with
83 additions
and
21 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
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,4 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class AboutController < ApplicationController | ||
def index; 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 |
---|---|---|
|
@@ -11,8 +11,7 @@ def greeting_message | |
'Good afternoon!' | ||
when 18..23, 0..4 | ||
'Good evening!' | ||
else | ||
'Hello!' | ||
|
||
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,9 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
# rubocop:disable Style/Documentation | ||
|
||
class ApplicationMailer < ActionMailer::Base | ||
default from: '[email protected]' | ||
layout 'mailer' | ||
end | ||
# rubocop:enable Style/Documentation |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# application_cable_spec.rb | ||
|
||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe ApplicationCable::Connection, type: :channel do | ||
it 'successfully connects' do | ||
connect '/cable' | ||
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,17 +1,15 @@ | ||
# frozen_string_literal: true | ||
# require 'rails_helper' | ||
|
||
require 'rails_helper' | ||
|
||
# Specs in this file have access to a helper object that includes | ||
# the AboutHelper. For example: | ||
# | ||
# describe AboutHelper do | ||
# describe "string concat" do | ||
# it "concats two strings with spaces" do | ||
# expect(helper.concat_strings("this","that")).to eq("this that") | ||
# end | ||
# end | ||
# # Specs in this file have access to a helper object that includes | ||
# # the AboutHelper. For example: | ||
# # | ||
# # describe AboutHelper do | ||
# # describe "string concat" do | ||
# # it "concats two strings with spaces" do | ||
# # expect(helper.concat_strings("this","that")).to eq("this that") | ||
# # end | ||
# # end | ||
# # end | ||
# RSpec.describe AboutHelper, type: :helper do | ||
# pending "add some examples to (or delete) #{__FILE__}" | ||
# end | ||
RSpec.describe AboutHelper, type: :helper 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# # require 'rails_helper' | ||
|
||
# RSpec.describe ApplicationJob, type: :job do | ||
# describe '#perform' do | ||
# it 'performs the job' do | ||
# expect do | ||
# described_class.perform_later | ||
# end.to have_enqueued_job(described_class) | ||
# 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# require 'rails_helper' | ||
|
||
# RSpec.describe ApplicationMailer, type: :mailer do | ||
# describe 'welcome_email' do | ||
# let(:user) { create(:user) } | ||
# let(:mail) { ApplicationMailer.welcome_email(user) } | ||
|
||
# it 'renders the subject' do | ||
# expect(mail.subject).to eq('Welcome to My App') | ||
# end | ||
|
||
# it 'renders the receiver email' do | ||
# expect(mail.to).to eq([user.email]) | ||
# end | ||
|
||
# it 'renders the sender email' do | ||
# expect(mail.from).to eq(['[email protected]']) | ||
# end | ||
|
||
# it 'renders the body' do | ||
# expect(mail.body.encoded).to match('Welcome to My App') | ||
# 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
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