Skip to content

Commit

Permalink
Merge pull request #496 from vyper/fix-rakefile-w-rspec
Browse files Browse the repository at this point in the history
Fix Rakefile generation when using RSpec
  • Loading branch information
Trung Lê committed Feb 7, 2016
2 parents fbcd70a + a8f8edd commit a55fd59
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions lib/hanami/generators/application/app/Rakefile.rspec.tt
@@ -1,6 +1,9 @@
require 'rake'
require 'hanami/rake_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task default: :spec
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError
end
9 changes: 6 additions & 3 deletions lib/hanami/generators/application/container/Rakefile.rspec.tt
@@ -1,6 +1,9 @@
require 'rake'
require 'hanami/rake_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task default: :spec
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError
end
9 changes: 6 additions & 3 deletions test/fixtures/commands/application/new_app/Rakefile.rspec
@@ -1,6 +1,9 @@
require 'rake'
require 'hanami/rake_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task default: :spec
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError
end
@@ -1,6 +1,9 @@
require 'rake'
require 'hanami/rake_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)
task default: :spec
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError
end

0 comments on commit a55fd59

Please sign in to comment.