From 9907f4c436869983bd87a7d3263f8e0c66ddd4c1 Mon Sep 17 00:00:00 2001 From: Fabian Schwahn Date: Mon, 19 Feb 2024 19:43:28 +0100 Subject: [PATCH] Add spec for ShortenerGenerator --- spec/generators/shortener_generator_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spec/generators/shortener_generator_spec.rb diff --git a/spec/generators/shortener_generator_spec.rb b/spec/generators/shortener_generator_spec.rb new file mode 100644 index 0000000..a16302d --- /dev/null +++ b/spec/generators/shortener_generator_spec.rb @@ -0,0 +1,10 @@ +require "spec_helper" +require File.expand_path("../../../lib/generators/shortener/shortener_generator.rb", __FILE__) + +RSpec.describe ShortenerGenerator do + describe ".next_migration_number" do + it "returns the next migration number" do + expect { described_class.next_migration_number(".") }.not_to raise_error + end + end +end