Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe 'listing recepies', receips: true do
- before do
- @chef = FactoryGirl.create(:user)
- @recipe = FactoryGirl.create(:recepy, user: @chef)
- @recipe2 = @chef.recepies.build(name: "chicken saute", description: "great chicken dish")
- @recipe2.save
- visit recipes_path
- byebug
- end
- it {expect render_template :index }
- it { is_expected.to have_content(@recipe.name) }
- it { is_expected.to have_content(@recipe2.name)}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement