Class: JasmineFixturesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- JasmineFixturesGenerator
- Defined in:
- lib/generators/jasmine_fixtures_generator.rb
Instance Method Summary collapse
- #copy_jasmine_fixture_creators_spec ⇒ Object
- #copy_jasmine_jquery ⇒ Object
- #copy_jasmine_spec_example ⇒ Object
Instance Method Details
#copy_jasmine_fixture_creators_spec ⇒ Object
13 14 15 16 |
# File 'lib/generators/jasmine_fixtures_generator.rb', line 13 def copy_jasmine_fixture_creators_spec say_status("copying", "jasmine_fixture_creators_spec.rb", :green) copy_file "spec/controllers/jasmine_fixture_creators_spec.rb", "spec/controllers/jasmine_fixture_creators_spec.rb" end |
#copy_jasmine_jquery ⇒ Object
8 9 10 11 |
# File 'lib/generators/jasmine_fixtures_generator.rb', line 8 def copy_jasmine_jquery say_status("copying", "jasmine-jquery", :green) copy_file "../../../vendor/jasmine-jquery.js", "spec/javascripts/helpers/jasmine-jquery.js" end |
#copy_jasmine_spec_example ⇒ Object
18 19 20 21 |
# File 'lib/generators/jasmine_fixtures_generator.rb', line 18 def copy_jasmine_spec_example say_status("copying", "jasmine spec example", :green) copy_file "spec/javascripts/example_users_spec.js", "spec/javascripts/example_users_spec.js" end |