Class: Eastrails::Components::Jasmine

Inherits:
Base
  • Object
show all
Includes:
ThorExt
Defined in:
lib/eastrails/components/jasmine.rb

Instance Method Summary collapse

Methods included from ThorExt

#ask_wizard, #multiple_choice, #no_wizard?, #say_custom, #say_recipe, #say_wizard, #yes_wizard?

Methods inherited from Base

#component_installed?, #dir_html_to_haml, #do_if_installed, #file_html_to_haml, #gems, #html_to_haml, #parse_gemfile

Methods inherited from Generator

#initialize

Constructor Details

This class inherits a constructor from Eastrails::Generator

Instance Method Details

#addObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/eastrails/components/jasmine.rb', line 6

def add
  gem 'jasmine', :group => [:development, :test]
  system 'bundle install'
  system "rails g jasmine:install"
  if yes_wizard?("Do you want to generate jasmine sample specs?")
    system "rails g jasmine:examples"
  end
  puts "==============================="
  puts "Usage: "
  puts "- Start jasmine server: rake jasmine"
  puts "- Point your browser to http://localhost:8888"
  puts "More information at: https://github.com/pivotal/jasmine-gem"
end