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

Commit

Permalink
Change usage of to_not to not_to in chapter 6 code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
ruralocity committed Dec 2, 2014
1 parent f0990e7 commit a4d3d6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/controllers/contacts_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
expect{
post :create,
contact: attributes_for(:invalid_contact)
}.to_not change(Contact, :count)
}.not_to change(Contact, :count)
end

it "re-renders the :new template" do
Expand Down Expand Up @@ -153,7 +153,7 @@
firstname: 'Larry',
lastname: nil)
@contact.reload
expect(@contact.firstname).to_not eq('Larry')
expect(@contact.firstname).not_to eq('Larry')
expect(@contact.lastname).to eq('Smith')
end

Expand Down Expand Up @@ -288,7 +288,7 @@
expect{
post :create,
contact: attributes_for(:invalid_contact)
}.to_not change(Contact, :count)
}.not_to change(Contact, :count)
end

it "re-renders the :new template" do
Expand Down Expand Up @@ -335,7 +335,7 @@
firstname: 'Larry',
lastname: nil)
@contact.reload
expect(@contact.firstname).to_not eq('Larry')
expect(@contact.firstname).not_to eq('Larry')
expect(@contact.lastname).to eq('Smith')
end

Expand Down

0 comments on commit a4d3d6d

Please sign in to comment.