1
0
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:
Dan Barber 2014-12-09 11:18:02 +00:00
parent 086e66752a
commit 7f21fe2f79
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ describe ContactsController, type: :controller do
describe "POST create" 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
expect(flash[:notice]).to eql(I18n.t("contact.thanks"))
expect(response).to redirect_to(:new_contact)

View File

@ -1,6 +1,6 @@
require 'spec_helper'
describe 'visitor navigates site' do
feature 'visitor navigates site' do
let!(:category) { create(:category) }
let!(:photo) { create(:photo, featured: true, categories: [category]) }