calebhearth / formulaic

Simplify form filling with Capybara
MIT License
552 stars 29 forks source link

Add an optional syntax for better FactoryGirl support #11

Open calebhearth opened 10 years ago

calebhearth commented 10 years ago

When I type fill_form(:user), that should function as fill_form(:user, attributes_for(:user)) currently does.

When I type fill_form(:user, :name, :email), that should function the same as fill_form(:user, attributes_for(:user).slice(:name, :email)) currently does.

When I type fill_form(:user, :name, password: 'password'), that should function the same as fill_form(:user, attributes_for(:user).slice(:name).merge(password: 'password')) currently does.