Sha256: c068b5b61261487b1a90a6c911737f191154597e79a934ea27f5cb19466aac08

Contents?: true

Size: 608 Bytes

Versions: 10

Compression:

Stored size: 608 Bytes

Contents

require 'spec_helper'

describe 'Student Scholarship Status' do

  before(:all) { set_resource 'student' }
  before { as :admin }

  let(:student) { create(:student) }
  let!(:scholarship_status) { create(:scholarship_status) }

  it 'create and show', js: true do
    visit gaku.edit_student_path(student)
    select scholarship_status.name, from: 'student_scholarship_status_id'
    click submit

    flash_updated?
    within('#student_scholarship_status_id') { has_content? scholarship_status.name }
    student.reload
    expect(student.scholarship_status.name).to eq scholarship_status.name
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gaku-0.2.4 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.2.3 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.2.2 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.2.1 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.2.0 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.1.1 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.1.0 frontend/spec/features/students/scholarship_status_spec.rb
gaku-0.0.3 core/spec/requests/students/scholarship_status_spec.rb
gaku-0.0.2 core/spec/requests/students/scholarship_status_spec.rb
gaku-0.0.1 core/spec/requests/students/scholarship_status_spec.rb