Class: Bently::JasmineRails

Inherits:
RailsRecipe show all
Defined in:
lib/bently/recipe/jasmine-rails.rb

Constant Summary

Constants inherited from RubyRecipe

RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RailsRecipe

#generate, #migrate

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Constructor Details

#initializeJasmineRails

Returns a new instance of JasmineRails.



9
10
11
12
13
14
15
16
17
# File 'lib/bently/recipe/jasmine-rails.rb', line 9

def initialize
  requirement '`brew install qt` for the headless webkit widget'
  gem_group :test, :development do
    gem 'jasmine-rails'
  end
  bundle
  create 'spec/javascripts/support/jasmine.yml', template('jasmine.yml')
  todo 'Modify spec/javascripts/support/jasmine.yml as necessary.'
end