Sha256: 301136c5a40c6c7021ad5c22bd2228d506462554edd4d3a9019594e509462b71

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

require 'editor/test_helper'

class BaseHelperTest < ActionView::TestCase
  include Rails.application.routes.url_helpers

  def signed_in?
    !@user.nil?
  end

  def current_user
    @user
  end

  protected

  def sign_user_in!
    @user = User.allocate
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ecrire-0.27.0 test/editor/helpers/base_helper_test.rb
ecrire-0.26.3 test/editor/helpers/base_helper_test.rb
ecrire-0.26.2 test/editor/helpers/base_helper_test.rb
ecrire-0.26.1 test/editor/helpers/base_helper_test.rb
ecrire-0.26.0 test/editor/helpers/base_helper_test.rb
ecrire-0.25.2 test/editor/helpers/base_helper_test.rb
ecrire-0.25.1 test/editor/helpers/base_helper_test.rb
ecrire-0.25.0 test/editor/helpers/base_helper_test.rb
ecrire-0.24.1 test/editor/helpers/base_helper_test.rb
ecrire-0.24.0 test/editor/helpers/base_helper_test.rb