Skip to content

Commit

Permalink
Changed 'setup' to 'before' in the scaffold generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil McClure committed Aug 5, 2011
1 parent 7265f97 commit 0dd03a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<% module_namespacing do -%>
class <%= class_name %>ControllerTest < MiniTest::Rails::Controller
setup do
before do
@<%= singular_table_name %> = <%= table_name %>(:one)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<% module_namespacing do -%>
class <%= class_name %>ControllerTest < MiniTest::Rails::Controller
setup do
before do
@<%= singular_table_name %> = <%= table_name %>(:one)
end

Expand Down

0 comments on commit 0dd03a4

Please sign in to comment.