forked from jfirebaugh/konacha
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Bill Heaton edited this page May 8, 2013
·
12 revisions
Fork of Konacha (gem) using QUnit/Pavlov instead of Mocha/chai
If you are interested in trying out the konacha fork, see the example Peepcode Ordr app inside of rails: peepcode-ordr-test/konacha branch, which is setup to use the konacha gem source to test with QUnit/Pavlov.
It's close to a working first iteration running the tests in the browser and via capybara using the konacha gem.
To use the konacha fork gem, clone it to a folder named 'konacha' as a sibling to your (rails) project folder. Next checkout the qunit branch. Then add to your Gemfile something like this:
group :test, :development do
gem "rspec-rails", "~> 2.0"
gem 'konacha', :path => '../konacha'
endTry it out using the konacha branch...
Run in your browser:
- Execute
bundle exec rake konacha:serve - Then visit http://localhost:3500
- Only test specific files by adding the path e.g. http://localhost:3500/integration/tables_test
Run from command line, launches Firefox via Selenium:
bundle exec rake konacha:runbundle exec rake konacha:run SPEC=integration/tabs_testbundle exec rake konacha:run SPEC=integration/tables_test
TODO: fix failing specs:
rspec spec/runner_spec.rbrspec spec/server_spec.rb