Browse Source

removed gem and further tests

pull/671/head
JG 3 years ago
parent
commit
a52b0895c6
  1. 2
      Gemfile
  2. 30
      spec/features/schemes_spec.rb

2
Gemfile

@ -28,8 +28,6 @@ gem "notifications-ruby-client"
# A modest javascript framework for the html you already have
gem "stimulus-rails"
# Spreadsheet parsing
gem "securerandom"
gem "roo"
# Json Schema
gem "json-schema"

30
spec/features/schemes_spec.rb

@ -257,6 +257,36 @@ RSpec.describe "Schemes scheme Features" do
it "lets me fill in the scheme details" do
expect(page).to have_content "What client group is this scheme intended for?"
end
context "when I select primary client group details" do
before do
choose "Homeless families with support needs"
end
it "lets me confirm if I want to select secondary group details" do
expect(page).to have_content "Does this scheme provide for another client group?"
end
context "when I confirm the secondary group" do
before do
choose "Yes"
end
it "lets me select secondary client group detail" do
expect(page).to have_content "Does this scheme provide for another client group?"
end
context "when I select the secondary group" do
before do
choose "Homeless families with support needs"
end
it "lets me select secondary client group detail" do
expect(page).to have_content "Does this scheme provide for another client group?"
end
end
end
end
end
end
end

Loading…
Cancel
Save