mod/follow/spec/set/self/follow_defaults_spec.rb
# -*- encoding : utf-8 -*-
describe Card::Set::Self::FollowDefaults do
context "when updated" do
before do
Card::Auth.as_bot do
card = Card[:follow_defaults]
card.trigger = :update_follow_rules
card.update! content: "[[A+*self+*always]]"
end
end
it "updates follow rules of users" do
ca = Card.fetch "A"
expect(ca.follower_names).to include "Joe User"
end
end
end