Skip to content

Commit

Permalink
tiny fix for rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
gipcompany committed Sep 24, 2016
1 parent 58bfae7 commit df04a9f
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 @@ -3,7 +3,7 @@ module Generators
class InstallGenerator < ::Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)

def copy_initializer_file(destination_path = 'config/initializers/file_manipulator.rb')
def copy_initializer(destination_path = 'config/initializers/file_manipulator.rb')
copy_file 'initializer.rb', destination_path
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/generators/file_manipulator/install_generator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Generators
end

it '#copy_initializer_file' do
subject.copy_initializer_file('tmp/config/initializers/file_manipulator.rb')
subject.copy_initializer('tmp/config/initializers/file_manipulator.rb')
end
end
end
Expand Down

0 comments on commit df04a9f

Please sign in to comment.