Skip to content

Commit

Permalink
Merge branch 'RUBY-3220-add-character-validation-on-project-name-fiel…
Browse files Browse the repository at this point in the history
…d' of github.com:DEFRA/pafs_core into RUBY-3212-pafs-proposals-with-duplicate-names-are-not-sent-to-pipeline
  • Loading branch information
jjromeo committed Sep 3, 2024
2 parents 9ed9a13 + 9ad8a65 commit 079d25a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/steps/pafs_core/project_name_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
let(:blank_name_params) { ActionController::Parameters.new({ project_name_step: { name: nil } }) }
let(:error_message) { "The project name must only contain letters, underscores, hyphens and numbers" }

it_behaves_like "a project step"

context "when name is valid" do
it "returns true and saves the name" do
expect(project_name_step.name).not_to eq "Wigwam waste water"
Expand Down

0 comments on commit 079d25a

Please sign in to comment.