forked from id774/automaticruby
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclear_spec.rb
More file actions
49 lines (44 loc) · 1.21 KB
/
clear_spec.rb
File metadata and controls
49 lines (44 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- coding: utf-8 -*-
# Name:: Automatic::Plugin::Filter::Clear
# Author:: 774 <http://id774.net>
# Created:: Oct 20, 2014
# Updated:: Oct 20, 2014
# Copyright:: Copyright (c) 2014 Automatic Ruby Developers.
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
require File.expand_path(File.dirname(__FILE__) + '../../../spec_helper')
require 'filter/clear'
describe Automatic::Plugin::FilterClear do
context "should be cleared" do
subject {
Automatic::Plugin::FilterClear.new({
},
AutomaticSpec.generate_pipeline {
feed {
item "http://hogefuga.com", "",
"aaaabbbccc"
}
feed {
item "http://aaaabbbccc.com", "",
"hogefugahoge"
}
feed {
item "http://aaabbbccc.com", "",
"aaaaaaaaaacccdd"
}
feed {
item "http://aaccc.com", "",
"aaaabbbccc"
item "http://aabbccc.com", "",
"aabbbccc"
}
feed {
item "http://cccddd.com", "",
"aabbbcccdd"
}
}
)}
describe "#run" do
its(:run) { should have(0).feeds }
end
end
end