2012-01-10 22:14:46 +00:00
|
|
|
require 'rspec'
|
|
|
|
require 'mocha'
|
2012-01-11 16:31:19 +00:00
|
|
|
require 'fakefs/safe'
|
2012-01-10 22:14:46 +00:00
|
|
|
|
2012-01-11 16:31:19 +00:00
|
|
|
require 'jasmine-headless-webkit'
|
|
|
|
require 'guard/jasmine-headless-webkit'
|
|
|
|
|
|
|
|
require 'coffee-script'
|
|
|
|
|
|
|
|
World(Mocha::API)
|
2012-01-10 22:14:46 +00:00
|
|
|
|
|
|
|
Before do
|
|
|
|
mocha_setup
|
2012-01-11 16:31:19 +00:00
|
|
|
|
|
|
|
FakeFS.activate!
|
|
|
|
|
|
|
|
@report_file = 'notify-file'
|
|
|
|
@paths = []
|
2012-01-10 22:14:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
After do
|
|
|
|
begin
|
|
|
|
mocha_verify
|
|
|
|
ensure
|
|
|
|
mocha_teardown
|
|
|
|
end
|
2012-01-11 16:31:19 +00:00
|
|
|
|
|
|
|
FakeFS.deactivate!
|
2012-01-10 22:14:46 +00:00
|
|
|
end
|
|
|
|
|