Skip to content

Commit

Permalink
Release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed May 28, 2013
1 parent 7d4f83f commit 1301ef9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
8 changes: 8 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# master

# 3.0.0

* Update mocha (1.10.0)
* Fix reporting of errors in asynchronous tests (#136)
* Add a Konacha.config option to set formatters (#137)
* Test against latest version of Poltergeist
* Ruby 1.8.7 is no longer supported

# 2.7.0

* Fix semantics of pending event for RSpec reporters (#131, #132)
Expand Down
38 changes: 3 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,42 +255,10 @@ describe("templating", function() {
});
```

## Upgrading from Konacha 1.x
## Upgrading from Konacha 2.x

### Iframe

As of Konacha 2.0, each test file is run inside an isolated iframe. For
compatibility with Konacha 1.x, the iframe's `<body>` element will have
`id="konacha"` set on it.

Previously, all test files would run in the same environment. Thus, if only
one test file pulled in an external library, all tests would be able to use
it. Now test files are run in isolation. If you encounter an undefined
JavaScript module in your test, you may be missing an explicit `//= require`
call somewhere.

### Options

In Konacha 1.x you would set `Konacha.mochaOptions` in `konacha_config.js`:

```javascript
// Old syntax
Konacha.mochaOptions.ignoreLeaks = true;
```

The `konacha_config.js` file is no longer used by Konacha 2.0. Instead, call
Mocha's own methods in [`spec_helper.js`](#spec-helper):

```javascript
// New syntax
mocha.ignoreLeaks();
```

### Global `mocha`

Konacha 2.0 ships with an upgraded Mocha. Some objects that were previously
available on the global `mocha` object might now be located on `Mocha`. If you
get an error message to this effect, adjust your code accordingly.
The only backward-incompatible change in Konacha 3.0 is that Ruby 1.8.7 is
no longer supported. Please upgrade to 1.9.3 or 2.0.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion konacha.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ the asset pipeline and engines.}
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.name = "konacha"
gem.require_paths = ["lib"]
gem.version = "2.7.0"
gem.version = "3.0.0"
gem.license = "MIT"

gem.add_dependency "railties", ">= 3.1", "< 5"
Expand Down

0 comments on commit 1301ef9

Please sign in to comment.