decko-commons/decko

View on GitHub
mod/follow/spec/set/self/follow_defaults_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- 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