Skip to content

Commit

Permalink
Merge pull request #4 from eagerworks/fix-matrix
Browse files Browse the repository at this point in the history
Fix Matrix test suite
  • Loading branch information
federicoaldunate authored Oct 1, 2024
2 parents d4d2258 + 5535f82 commit 2717b67
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 100 deletions.
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

96 changes: 0 additions & 96 deletions Gemfile.lock

This file was deleted.

4 changes: 2 additions & 2 deletions lib/sea_food/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ def validate(options = {})
end

def save(options = {})
model.save(options) if valid?
model.save(**options) if valid?
end

def save!(options = {})
model.save!(options) if valid?
model.save!(**options) if valid?
end

private
Expand Down
2 changes: 1 addition & 1 deletion spec/sea_food/service_and_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def call
)

expect(result).to be_fail
expect(result.address.errors.map(&:message)).to eq(['is too short (minimum is 5 characters)'])
expect(result.errors[:address][:line1]).to eq(['is too short (minimum is 5 characters)'])
end

it '.call - with failed execution' do
Expand Down

0 comments on commit 2717b67

Please sign in to comment.