From eda969c2a044eafffac4b5ef1a5c09229edc6679 Mon Sep 17 00:00:00 2001 From: Michael Webb Date: Tue, 1 Aug 2023 12:03:28 +1000 Subject: [PATCH] Add chromium and chromedriver to the list of dependencies --- flake.lock | 12 ++++++------ flake.nix | 3 ++- spec/requests/api/my_predictions_controller_spec.rb | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.lock b/flake.lock index 576f70d3..f7e91cbd 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1687709756, - "narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=", + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", "owner": "numtide", "repo": "flake-utils", - "rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1687861235, - "narHash": "sha256-svC9lDtEft6hPopvs85z6AN1RDSI+UAZAISXHuRNvqg=", + "lastModified": 1690780834, + "narHash": "sha256-xt/0Tv1d2DdKrCqzWU4RikIn+pUoZDU2MKtsWf8Bb60=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4fec046839e4c2f58a930d358d0e9f893ece59f5", + "rev": "b4ddd645e94706759d443755dbec35901553f35d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 78a6850f..4c05c9b1 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,8 @@ bundler = pkgs.bundler.override { inherit ruby; }; developmentInputs = with pkgs; [ bundler + chromedriver + chromium libnotify pkg-config postgresql_12 @@ -36,4 +38,3 @@ }; }); } - diff --git a/spec/requests/api/my_predictions_controller_spec.rb b/spec/requests/api/my_predictions_controller_spec.rb index 50d46710..f44f4334 100644 --- a/spec/requests/api/my_predictions_controller_spec.rb +++ b/spec/requests/api/my_predictions_controller_spec.rb @@ -69,7 +69,7 @@ actor = json_hash['user'] expect(predictions.length).to eq 1 expect(predictions.first['description']).to eq another_prediction.description - expect(predictions.first['last_judgement_at'] > before_judgment_timestamp).to be true + expect(predictions.first['last_judgement_at'] >= before_judgment_timestamp).to be true expect(actor['email']).to eq user.email get url, params: params.merge(page_size: 1, page: 2)