- blocked_user = users(:public_user)
- moderator = users(:moderator_user)
-
- block = UserBlock.create(:user_id => blocked_user.id,
- :creator_id => moderator.id,
- :reason => "testing",
- :ends_at => Time.now.getutc + 5.minutes)
- get "/api/#{API_VERSION}/user/details", nil, auth_header(blocked_user.display_name, "test")
+ blocked_user = create(:user)
+ moderator = create(:moderator_user)
+
+ block = UserBlock.create(
+ :user_id => blocked_user.id,
+ :creator_id => moderator.id,
+ :reason => "testing",
+ :ends_at => Time.now.getutc + 5.minutes
+ )
+ get "/api/#{Settings.api_version}/user/details", :headers => auth_header(blocked_user.display_name, "test")