spec/lib/apipie/param_group_spec.rb in apipie-rails-0.9.4 vs spec/lib/apipie/param_group_spec.rb in apipie-rails-1.0.0
- old
+ new
@@ -1,7 +1,8 @@
require "spec_helper"
describe "param groups" do
+ before { Apipie.reload_documentation }
it "lets reuse the params description in more actions" do
user_create_desc = Apipie["users#create"].params[:user]
user_create_params = user_create_desc.validator.params_ordered.map(&:name)