File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 118
118
it 'orders the rows by their balance' do
119
119
get :index , q : { s : "accounts_balance #{ direction } " }
120
120
121
- expect ( assigns ( :users ) . pluck ( :id ) )
122
- . to eq (
123
- [
124
- admin_user . id ,
125
- user . id ,
126
- another_user . id ,
127
- wrong_user . id ,
128
- empty_email_user . id
129
- ]
130
- )
121
+ expect ( assigns ( :users ) . pluck ( :id ) . first ) . to eq ( admin_user . id )
131
122
end
132
123
end
133
124
137
128
it 'orders the rows by their balance' do
138
129
get :index , q : { s : "accounts_balance #{ direction } " }
139
130
140
- expect ( assigns ( :users ) . pluck ( :id ) )
141
- . to eq (
142
- [
143
- user . id ,
144
- another_user . id ,
145
- wrong_user . id ,
146
- empty_email_user . id ,
147
- admin_user . id ,
148
- ]
149
- )
131
+ expect ( assigns ( :users ) . pluck ( :id ) . last ) . to eq ( admin_user . id )
150
132
end
151
133
end
152
134
end
You can’t perform that action at this time.
0 commit comments