Skip to content
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'
end

Try it out using the konacha branch...

Run in your browser:

Run from command line, launches Firefox via Selenium:

  • bundle exec rake konacha:run
  • bundle exec rake konacha:run SPEC=integration/tabs_test
  • bundle exec rake konacha:run SPEC=integration/tables_test

TODO: fix failing specs:

  • rspec spec/runner_spec.rb
  • rspec spec/server_spec.rb

Clone this wiki locally