You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
change expect(page).to have_content("My Edit") in to expect(page).to have_content("My edit").
Problem is within the following code:
describe 'form' do
it 'shows an update form that submits content and redirects and prints out params' do
@post = Post.create(title: "My Post", description: "My post desc")
visit edit_post_path(@post)
fill_in 'post[title]', with: "My edit"
fill_in 'post[description]', with: "My post description"
click_on "Update Post"
expect(page).to have_content("My Edit")
end
end
The text was updated successfully, but these errors were encountered:
developerjigr
changed the title
Typo in post_spec.rb
Typo in post_spec.rb causing rspec to fail
Jul 3, 2018
Solution:
change expect(page).to have_content("My Edit") in to expect(page).to have_content("My edit").
Problem is within the following code:
The text was updated successfully, but these errors were encountered: