Skip to content

Commit

Permalink
Fix admin/users_spec failure under MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Dec 21, 2017
1 parent da5f398 commit dbbfd21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/spec/features/admin/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
end

context "member since" do
before do
user_a.update_column(:created_at, 2.weeks.ago)
end

it_behaves_like "a sortable attribute" do
let(:text_match_1) { user_a.email }
let(:text_match_2) { user_b.email }
Expand All @@ -107,7 +111,6 @@
end

it 'displays the correct results for a user search by creation date' do
user_a.update_column(:created_at, 2.weeks.ago)
fill_in 'q_created_at_lt', with: 1.week.ago
click_button 'Search'
within_table('listing_users') do
Expand Down

0 comments on commit dbbfd21

Please sign in to comment.