spec/lib/onebox/layout_spec.rb in onebox-1.8.22 vs spec/lib/onebox/layout_spec.rb in onebox-1.8.23

- old
+ new

@@ -14,20 +14,20 @@ Onebox.options.load_paths << "directory_b" end context "when template exists in directory_b" do before(:each) do - allow_any_instance_of(described_class).to receive(:template?) { |_,path| path == "directory_b" } + allow_any_instance_of(described_class).to receive(:template?) { |_, path| path == "directory_b" } end it "returns directory_b" do expect(template_path).to eq("directory_b") end end context "when template exists in directory_a" do before(:each) do - allow_any_instance_of(described_class).to receive(:template?) { |_,path| path == "directory_a" } + allow_any_instance_of(described_class).to receive(:template?) { |_, path| path == "directory_a" } end it "returns directory_a" do expect(template_path).to eq("directory_a") end