Skip to content

Commit

Permalink
Add specs for color scheme seed
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Sep 5, 2024
1 parent dc42ad2 commit 91ed6cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/models/color_schemes/seed_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require "rails_helper"

RSpec.describe ColorSchemes::Seed do
describe "#seed_all" do
it "creates color scheme data and is idempotent" do
aggregate_failures do
expect {
described_class.new.seed_all
}.to change(ColorScheme, :count).by_at_least 100

expect {
described_class.new.seed_all
}.not_to change(ColorScheme, :count)
end
end
end
end

0 comments on commit 91ed6cf

Please sign in to comment.