File: refresh_spec.rb

package info (click to toggle)
atig 0.6.1-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 868 kB
  • sloc: ruby: 5,315; makefile: 11; sh: 3
file content (20 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- mode:ruby; coding:utf-8 -*-

require 'atig/command/refresh'
require 'atig/command/info'

describe Atig::Command::Refresh do
  include CommandHelper

  before do
    @command = init Atig::Command::Refresh
  end

  it "should refresh all" do
    expect(@followings).to receive(:invalidate)
    expect(@lists).to receive(:invalidate).with(:all)
    expect(@channel).to receive(:notify).with("refresh followings/lists...")

    call '#twitter','refresh', []
  end
end