spec/breadcrumb_spec.rb in breadcrumb_trail-0.1.0 vs spec/breadcrumb_spec.rb in breadcrumb_trail-0.2.0

- old
+ new

@@ -25,10 +25,10 @@ let(:actual_name) { "Home" } let(:actual_path) { "/" } it "returns the called name" do - expect(context).to receive(:some_name).once.and_return(actual_name) + expect(I18n).to receive(:translate).with(:some_name).and_return(actual_name) expect(subject.computed_name(context)).to be actual_name end it "returns the called path" do expect(context).to receive(:root_path).once.and_return(actual_path)