Sha256: d671d94e05321e8f9a568463e06fd29dd335294d9f976c4c2d4b78d3f9c56925

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

require 'test_helper'

class Admins::SessionsControllerTest < ActionController::TestCase
  setup do
    @valid = { :email => admins(:bob).email, :password => 'secret' }
  end

  test "return_to when passwords_controller is missing" do
    post :create, :admin => @valid
    assert_redirected_to root_url
    assert_authenticated(:admin)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
janus-0.10.1 test/functional/admins/sessions_controller_test.rb
janus-0.10.0 test/functional/admins/sessions_controller_test.rb
janus-0.9.1 test/functional/admins/sessions_controller_test.rb
janus-0.9.0 test/functional/admins/sessions_controller_test.rb
janus-0.8.1 test/functional/admins/sessions_controller_test.rb
janus-0.8.0 test/functional/admins/sessions_controller_test.rb