spec/factories/role.rb in releaf-1.1.22 vs spec/factories/role.rb in releaf-2.0.0

- old
+ new

@@ -1,19 +1,19 @@ -FactoryGirl.define do +FactoryBot.define do factory :roles, :class => Releaf::Permissions::Role do sequence(:name) {|n| "role #{n}"} factory :admin_role do - default_controller "releaf/permissions/users" + default_controller { "releaf/permissions/users" } after(:create) do |role| Releaf.application.config.available_controllers.each do|controller| role.permissions.create!(permission: "controller.#{controller}") end end end factory :content_role do - default_controller "admin/nodes" + default_controller { "admin/nodes" } after(:create) do |role| role.permissions.create!(permission: "controller.admin/nodes") end end end