mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Fix rest of specs.
This commit is contained in:
parent
086e66752a
commit
7f21fe2f79
@ -16,7 +16,7 @@ describe ContactsController, type: :controller do
|
|||||||
|
|
||||||
describe "POST create" do
|
describe "POST create" do
|
||||||
it "saves a new contact" do
|
it "saves a new contact" do
|
||||||
Contact.any_instance.should_receive(:save).once.and_return(true)
|
expect_any_instance_of(Contact).to receive(:save).once.and_return(true)
|
||||||
post :create, contact: contact_params
|
post :create, contact: contact_params
|
||||||
expect(flash[:notice]).to eql(I18n.t("contact.thanks"))
|
expect(flash[:notice]).to eql(I18n.t("contact.thanks"))
|
||||||
expect(response).to redirect_to(:new_contact)
|
expect(response).to redirect_to(:new_contact)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'visitor navigates site' do
|
feature 'visitor navigates site' do
|
||||||
|
|
||||||
let!(:category) { create(:category) }
|
let!(:category) { create(:category) }
|
||||||
let!(:photo) { create(:photo, featured: true, categories: [category]) }
|
let!(:photo) { create(:photo, featured: true, categories: [category]) }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user