Skip to content

Commit

Permalink
Add spec for ShortenerGenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
fschwahn committed Feb 19, 2024
1 parent 95d06a5 commit 9907f4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/generators/shortener_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9907f4c

Please sign in to comment.