2013-07-28 16:03:06 -07:00
|
|
|
# encoding: utf-8
|
|
|
|
|
2012-08-19 21:29:11 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2014-04-04 14:25:16 +00:00
|
|
|
describe 'as a zombie' do
|
2014-04-04 14:14:24 +00:00
|
|
|
specify 'it allows to create zombie from mutant' do
|
2014-05-27 15:12:36 +00:00
|
|
|
expect { Mutant.zombify }.to change { defined?(Zombie) }.from(nil).to('constant')
|
2014-01-19 21:42:21 +01:00
|
|
|
expect(Zombie.constants).to include(:Mutant)
|
2012-08-19 21:29:11 +02:00
|
|
|
end
|
|
|
|
end
|