File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 20
20
Automatic . user_dir = nil
21
21
end
22
22
23
- describe "with a normal recipe" do
24
- it "correctly load recipe" do
23
+ context "with a normal recipe" do
24
+ subject {
25
25
recipe = Automatic ::Recipe . new ( TEST_RECIPE )
26
- expect = [ { "module" => "SubscriptionFeed" ,
27
- "config" => { "feeds" => [ "http://blog.id774.net/post/feed/" ] } } ,
28
- { "module" => "FilterIgnore" , "config" => { "link" => [ "hoge" ] } } ,
29
- { "module" => "StorePermalink" , "config" => { "db" => "test_permalink.db" } } ]
30
- recipe . each_plugin { recipe } . should == expect
26
+ recipe . each_plugin { recipe }
27
+ }
28
+ let ( :expected ) { [ { "module" => "SubscriptionFeed" ,
29
+ "config" => { "feeds" => [ "http://blog.id774.net/post/feed/" ] } } ,
30
+ { "module" => "FilterIgnore" , "config" => { "link" => [ "hoge" ] } } ,
31
+ { "module" => "StorePermalink" , "config" => { "db" => "test_permalink.db" } } ]
32
+ }
33
+
34
+ it "correctly load recipe" do
35
+ expect ( subject ) . to eq expected
31
36
end
32
37
end
33
38
You can’t perform that action at this time.
0 commit comments