spec/builder_spec.rb in make_resourceful-1.0.2 vs spec/builder_spec.rb in make_resourceful-2.0.0.pre.beta

- old
+ new

@@ -37,12 +37,12 @@ it "should set the controller as made_resourceful" do @builder.apply @kontroller.made_resourceful.should be_true end - it "should set load_parent_object as a before_filter for no actions" do - @kontroller.expects(:before_filter).with(:load_parent_object, :only => []) + it "should set load_parent_object as a before_action for no actions" do + @kontroller.expects(:before_action).with(:load_parent_object, :only => []) @builder.apply end end describe Resourceful::Builder, " with some actions set" do @@ -65,11 +65,11 @@ it "should un-hide the given actions" do @builder.apply (@kontroller.hidden_actions & @actions).should be_empty end - it "should set load_parent_object as a before_filter for the given actions" do - @kontroller.expects(:before_filter).with(:load_parent_object, :only => [:show, :index, :new, :create]) + it "should set load_parent_object as a before_action for the given actions" do + @kontroller.expects(:before_action).with(:load_parent_object, :only => [:show, :index, :new, :create]) @builder.apply end end describe Resourceful::Builder, " with all actions set for a plural controller" do