jasmine/README.markdown

38 lines
942 B
Markdown
Raw Normal View History

2009-10-15 07:44:37 +00:00
jasmine-ruby
============
2009-10-11 00:44:59 +00:00
2010-01-27 05:54:51 +00:00
Jasmine Ruby dynamically serves HTML suites for [Jasmine](http://github.com/pivotal/jasmine)
2009-11-25 06:47:29 +00:00
2010-01-27 05:53:34 +00:00
To use:
2009-11-25 06:47:29 +00:00
2010-01-27 05:53:34 +00:00
`(sudo) gem install jasmine`
2009-10-11 00:44:59 +00:00
2010-01-27 05:53:34 +00:00
Post-installation:
2009-11-25 06:47:29 +00:00
2010-01-27 05:53:34 +00:00
For Rails support, use
2009-11-25 06:47:29 +00:00
2010-01-27 05:53:34 +00:00
`script/generate jasmine`
For other projects, use
`jasmine init`
After initializing a project, you may
`rake jasmine`
to set up a server. Opening localhost:8888 in a web browser will now run your jasmine specs.
You may also
`rake jasmine:ci`
which will run your Jasmine suites using selenium and rspec. This task is suitable for running in continuous integration environments.
Simple Configuration:
Customize `spec/javascripts/support/jasmine.yaml` to enumerate the source files, stylesheets, and spec files you would like the Jasmine runner to include.
You may use dir glob strings.
It is also possible to add overrides into the `spec/javascripts/support/jasmine_config.rb` file directly if you require further customization.