Sha256: d642de1b2edaf78eb43ae70cdb12d4bf47e3105a6118f3bbde568177c371b895

Contents?: true

Size: 616 Bytes

Versions: 9

Compression:

Stored size: 616 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')

feature 'IdpController' do
  scenario 'Login via default signup page' do
    saml_request = make_saml_request("http://foo.example.com/saml/consume")
    visit "/saml/auth?SAMLRequest=#{CGI.escape(saml_request)}"
    expect(status_code).to eq(200)
    fill_in 'email', :with => "foo@example.com"
    fill_in 'password', :with => "okidoki"
    click_button 'Sign in'
    click_button 'Submit'   # simulating onload
    expect(current_url).to eq('http://foo.example.com/saml/consume')
    expect(page).to have_content "foo@example.com"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
saml_idp-0.16.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.15.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.14.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.12.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.11.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.10.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.9.0 spec/acceptance/idp_controller_spec.rb
saml_idp-0.8.1 spec/acceptance/idp_controller_spec.rb
saml_idp-0.8.0 spec/acceptance/idp_controller_spec.rb