File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 Automatic . user_dir = nil
2121 end
2222
23- describe "with a normal recipe" do
24- it "correctly load recipe" do
23+ context "with a normal recipe" do
24+ subject {
2525 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
3136 end
3237 end
3338
You can’t perform that action at this time.
0 commit comments