Sha256: a707a06c42573018ce75188efcb158c9eb382bf1cad7bd9c6477ea3e6a36ea5c

Contents?: true

Size: 258 Bytes

Versions: 36

Compression:

Stored size: 258 Bytes

Contents

def mock_login
  @current_blogger = User.first || create(:user)
  controller.expects(:current_user).at_least_once.returns(@current_blogger)
end
def reset_configuration
  Blogit.configure do |config|
    config.current_blogger_method = :current_user
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
blogit-1.1.2 spec/support/authentication.rb
blogit-admin-0.0.1 spec/support/authentication.rb
blogit-1.1.1 spec/support/authentication.rb
blogit-1.1.0 spec/support/authentication.rb
blogit-1.0.0 spec/support/authentication.rb
blogit-1.0.0.rc1 spec/support/authentication.rb
blogit-0.8.0 spec/support/authentication.rb
blogit-0.7.0 spec/support/authentication.rb
blogit-0.6.0 spec/support/authentication.rb
blogit-0.5.1 spec/support/authentication.rb
blogit-0.5.0 spec/support/authentication.rb
blogit-0.4.8 spec/support/authentication.rb
blogit-0.4.7 spec/support/authentication.rb
blogit-0.4.6 spec/support/authentication.rb
blogit-0.4.5 spec/support/authentication.rb
blogit-0.4.4 spec/support/authentication.rb
blogit-0.4.3 spec/support/authentication.rb
blogit-0.4.2 spec/support/authentication.rb
blogit-0.4.1 spec/support/authentication.rb
blogit-0.4.0 spec/support/authentication.rb