Skip to content

Commit

Permalink
Merge pull request #13 from Fedcomp/form_matcher_params_fix
Browse files Browse the repository at this point in the history
Fixed form matcher specs
  • Loading branch information
davydovanton committed Sep 24, 2017
2 parents e79a01f + 018cf3a commit 55a44f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/hanami/matchers/form_matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module Matchers
description { "have field with params" }
match do |form|
@form = form
@params = ::Hanami::Utils::Hash.new(@params).symbolize!
@params = ::Hanami::Utils::Hash.new(params).symbolize!
@form_data = RSpec::Hanami::FormParser.new.call(form.to_s)

form_data.any? do |input|
Expand Down
2 changes: 1 addition & 1 deletion spec/support/views.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MainView
include Hanami::Helpers::FormHelper

def params
Hanami::Action::Params.new({})
{}
end

def form
Expand Down

0 comments on commit 55a44f6

Please sign in to comment.