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-0.3.2 spec/support/authentication.rb
blogit-0.3.1 spec/support/authentication.rb
blogit-0.3.0 spec/support/authentication.rb
blogit-0.2.1 spec/support/authentication.rb
blogit-0.2.0 spec/support/authentication.rb
blogit-0.1.0 spec/support/authentication.rb
blogit-0.0.13 spec/support/authentication.rb
blogit-0.0.12 spec/support/authentication.rb
blogit-0.0.11 spec/support/authentication.rb
blogit-0.0.10 spec/support/authentication.rb
blogit-0.0.9 spec/support/authentication.rb
blogit-0.0.8 spec/support/authentication.rb
blogit-0.0.7 spec/support/authentication.rb
blogit-0.0.6 spec/support/authentication.rb
blogit-0.0.5 spec/support/authentication.rb
blogit-0.0.4 spec/support/authentication.rb