Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Ch 6. id is not required for create #62

Open
JunichiIto opened this issue May 3, 2015 · 0 comments
Open

Ch 6. id is not required for create #62

JunichiIto opened this issue May 3, 2015 · 0 comments

Comments

@JunichiIto
Copy link

    describe "POST #create" do
      it "requires login" do
        post :create, id: create(:contact),
          contact: attributes_for(:contact)
        expect(response).to require_login
      end
    end

should be

    describe "POST #create" do
      it "requires login" do
        post :create, 
          contact: attributes_for(:contact)
        expect(response).to require_login
      end
    end

Anyway test passes, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant