Commit placeholder work

This commit is contained in:
maddiebaka
2023-12-06 15:53:25 -05:00
parent 60f37ece67
commit 709aa882b3
8 changed files with 56 additions and 3 deletions

View File

@@ -23,6 +23,19 @@ RSpec.describe "Dictionary", type: :request do
get "/dictionary"
expect(response.body).to include("#{Word.count} word entries in database")
end
describe "signed in" do
before :each do
sign_in FactoryBot.create(:user)
end
it "only lists the 11 parts of speech, in english" do
11.times { FactoryBot.create(:part_of_speech) }
FactoryBot.create(:part_of_speech_translation)
get "/dictionary"
expect(response.body).to have_selector(%(tr), count: 12)
end
end
end
describe "GET /show" do