require "rails_helper"
require "starter"

describe Starter, :admin do
  it "creates a sample radar" do
    user = create(:user)

    described_class.new.user_created(user)

    radars = user.radars
    expect(radars.count).to eq(1)
    expect(radars.first.name).to match("Personal Radar for")
  end

  it "creates a sample blip" do
    user = create(:user)

    described_class.new.user_created(user)

    expect(user.radars.first.blips.count).to eq(1)
  end
end
