Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Inject clearance/testing in spec/support/clearance.rb
  • Loading branch information
Harold Giménez committed Oct 28, 2011
1 parent 518f4d8 commit 6436933
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/suspenders/app_builder.rb
Expand Up @@ -142,5 +142,9 @@ def set_attr_accessibles_on_user
" attr_accessible :email, :password\n",
:after => /include Clearance::User\n/
end

def include_clearance_matchers
create_file "spec/support/clearance.rb", "require 'clearance/testing'"
end
end
end
1 change: 1 addition & 0 deletions lib/suspenders/generators/app_generator.rb
Expand Up @@ -81,6 +81,7 @@ def configure_app
build(:generate_cucumber)
build(:generate_clearance)
build(:install_factory_girl_steps)
build(:include_clearance_matchers)
end

def setup_stylesheets
Expand Down

0 comments on commit 6436933

Please sign in to comment.