File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1080,6 +1080,7 @@ RSpec.describe User, 'with some elements' do
10801080
10811081 describe ' with another name' do
10821082 let(:params) { { name: ' Mark' , position: ' PM' } }
1083+
10831084 it { expect(user.name).to eql(' Mark' ) }
10841085 end
10851086end
@@ -1698,7 +1699,7 @@ end
16981699
16991700` ` ` ruby
17001701it ' removes the last element' do
1701- expect { @array.pop }.to change{ @array.size }.by(1)
1702+ expect { @array.pop }.to change{ @array.size }.by(- 1)
17021703end
17031704
17041705it ' removes the last element' do
@@ -1710,11 +1711,11 @@ it 'removes the last element' do
17101711end
17111712
17121713it ' changes size by at least 1' do
1713- expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_least(1)
1714+ expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_least(- 1)
17141715end
17151716
17161717it ' changes size by at most 2' do
1717- expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_most(2)
1718+ expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_most(- 2)
17181719end
17191720` ` `
17201721
Original file line number Diff line number Diff line change 596596
597597` ` ` ruby
598598it ' removes the last element' do
599- expect { @array.pop }.to change{ @array.size }.by(1)
599+ expect { @array.pop }.to change{ @array.size }.by(- 1)
600600end
601601
602602it ' removes the last element' do
@@ -608,11 +608,11 @@ it 'removes the last element' do
608608end
609609
610610it ' changes size by at least 1' do
611- expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_least(1)
611+ expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_least(- 1)
612612end
613613
614614it ' changes size by at most 2' do
615- expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_most(2)
615+ expect { 2.times { @array.pop } }.to change{ @array.size }.by_at_most(- 2)
616616end
617617` ` `
618618
You can’t perform that action at this time.
0 commit comments