Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. describe 'listing recepies', receips: true do
  2. before do
  3. @chef = FactoryGirl.create(:user)
  4. @recipe = FactoryGirl.create(:recepy, user: @chef)
  5. @recipe2 = @chef.recepies.build(name: "chicken saute", description: "great chicken dish")
  6. @recipe2.save
  7.  
  8. visit recipes_path
  9. byebug
  10.  
  11. end
  12.  
  13. it {expect render_template :index }
  14. it { is_expected.to have_content(@recipe.name) }
  15. it { is_expected.to have_content(@recipe2.name)}
  16.  
  17.  
  18.  
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement