9 lines
269 B
Ruby
9 lines
269 B
Ruby
require "test_helper"
|
|
|
|
class PopTest < ActiveSupport::TestCase
|
|
test "default to the fallback reason if no reason is given" do
|
|
assert_equal "Not now", Pop.new(reason: "Not now").reason
|
|
assert_equal Account::PopReasons::FALLBACK_LABEL, Pop.new.reason
|
|
end
|
|
end
|