Sha256: d94e4b49ecc66923b13cff854109dedb15b57ca95dfb2ef1bb21d38f21e83c71
Contents?: true
Size: 1004 Bytes
Versions: 1
Compression:
Stored size: 1004 Bytes
Contents
require 'spec_helper' feature "AngularJS: /spike#/reviews", js: true do include_context "When authenticated by the admin section" context "given a reviewable applicant" do before do @applicant = Applicants::Applicant.create(email: 'fake@example.com', terms_of_use: '1') @applicant.update_column(:state, :reviewable) end describe '/reviews/:id' do before do @applicant.answers = [ "same answer", "same answer", "another answer", ] @applicant.save end context "given duplicate answers provided by the applicant" do # https://docs.angularjs.org/error/ngRepeat/dupes it "still displays the answers without issue" do visit "/applicants/spike#/reviews/#{@applicant.id}" expect(page).to have_content(@applicant.email); expect(page).to have_content("same answer") expect(page).to have_content("another answer") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
applicants-0.11.0 | spec/requests/spike/reviews_spec.rb |