Skip to content
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.

Commit

Permalink
fix a test failure in controller_generator_test
Browse files Browse the repository at this point in the history
  • Loading branch information
orend committed Oct 17, 2012
1 parent 75b6714 commit 8b574f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile.lock
Expand Up @@ -31,6 +31,9 @@ GEM
i18n (0.6.1)
journey (1.0.4)
json (1.7.5)
metaclass (0.0.1)
mocha (0.12.0)
metaclass (~> 0.0.1)
multi_json (1.3.6)
rack (1.4.1)
rack-cache (1.2)
Expand Down Expand Up @@ -60,5 +63,6 @@ PLATFORMS
ruby

DEPENDENCIES
mocha
rake
strong_parameters!
1 change: 1 addition & 0 deletions strong_parameters.gemspec
Expand Up @@ -19,4 +19,5 @@ Gem::Specification.new do |s|
s.add_dependency "railties", ">= 3.1", "< 4.0"

s.add_development_dependency "rake"
s.add_development_dependency "mocha"
end
1 change: 1 addition & 0 deletions test/controller_generator_test.rb
Expand Up @@ -8,6 +8,7 @@ class StrongParametersControllerGeneratorTest < Rails::Generators::TestCase
setup :prepare_destination

def test_controller_content
Rails.stubs(:application).returns(nil)
run_generator

assert_file "app/controllers/users_controller.rb" do |content|
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Expand Up @@ -3,6 +3,7 @@

require 'test/unit'
require 'strong_parameters'
require 'mocha'

module ActionController
SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
Expand Down

0 comments on commit 8b574f4

Please sign in to comment.