Skip to content

Commit

Permalink
Refactored fill_in_form_with_duplicate_data so that it does not try t…
Browse files Browse the repository at this point in the history
…o use our example id. Will need to refactor this method so that it is more flexible and does not try to add anything with an id postfix.
  • Loading branch information
baphled committed Jul 22, 2010
1 parent a2382ed commit 33ee40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/support/env.rb
Expand Up @@ -85,7 +85,7 @@ def fill_form(form_name, opts = {})
def fill_in_form_with_duplicate_data form_name
model = form_name.capitalize.constantize.make
opts = model.attributes
['id', 'created_at', 'updated_at', 'path'].each do |param|
['id', 'example_id', 'created_at', 'updated_at', 'path'].each do |param|
opts.delete param
end
fill_form form_name.singularize, opts
Expand Down

0 comments on commit 33ee40b

Please sign in to comment.