Skip to content

Commit

Permalink
Add messages helper spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aviflombaum committed Oct 5, 2023
1 parent 3406172 commit 9a42aaa
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/helpers/messages_helper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require "rails_helper"

RSpec.describe MessagesHelper do
describe ".affirmations" do
it "returns an array of affirmations" do
affirmations = MessagesHelper.affirmations
expect(affirmations).to be_an(Array)
expect(affirmations).not_to be_empty
end

it 'includes "Woof woof."' do
affirmations = MessagesHelper.affirmations
expect(affirmations).to include("Woof woof.")
end
end
end

0 comments on commit 9a42aaa

Please sign in to comment.