Commit placeholder work
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user