spec/draper/factory_spec.rb in draper-3.0.1 vs spec/draper/factory_spec.rb in draper-3.1.0

- old
+ new

@@ -1,10 +1,9 @@ require 'spec_helper' module Draper describe Factory do - describe "#initialize" do it "accepts valid options" do valid_options = {with: Decorator, context: {foo: "bar"}} expect{Factory.new(valid_options)}.not_to raise_error end @@ -86,15 +85,13 @@ expect(worker).to receive(:call).with(context: {baz: "qux"}) factory.decorate(double, context: {baz: "qux"}) end end end - end describe Factory::Worker do - describe "#call" do it "calls the decorator method" do object = double options = {foo: "bar"} worker = Factory::Worker.new(double, object) @@ -244,8 +241,7 @@ end end end end end - end end