Hi, My index methods
def index @galleries = Gallery.filtered_by(params.reverse_merge!(:per_page => 10)) end My spec: it "should list all galleries" do get :index response.should render_template("index") end And the error message should list all galleries can't convert Spec::Mocks::Mock into Array The problem is with the filtered_by method. What should I pass ? Thanks Marcio _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users