Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in post_spec.rb causing rspec to fail #6

Closed
developerjigr opened this issue Jul 3, 2018 · 0 comments
Closed

Typo in post_spec.rb causing rspec to fail #6

developerjigr opened this issue Jul 3, 2018 · 0 comments

Comments

@developerjigr
Copy link

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
@developerjigr developerjigr changed the title Typo in post_spec.rb Typo in post_spec.rb causing rspec to fail Jul 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant