require "test_helper"
class UserBlocksControllerTest < ActionController::TestCase
- fixtures :users, :user_roles
-
##
# test all routes which lead to this controller
def test_routes
include ERB::Util
include ApplicationHelper
- api_fixtures
-
def setup
I18n.locale = "en"
end
require "test_helper"
class ChangesetCommentTest < ActiveSupport::TestCase
- fixtures :changesets, :users
-
# validations
def test_does_not_accept_invalid_author
comment = create(:changeset_comment)
require "test_helper"
class NoteCommentTest < ActiveSupport::TestCase
- fixtures :users
-
def test_event_valid
ok = %w(opened closed reopened commented hidden)
bad = %w(expropriated fubared)
require "test_helper"
class NoteTest < ActiveSupport::TestCase
- fixtures :users
-
def test_status_valid
ok = %w(open closed hidden)
bad = %w(expropriated fubared)