Don't use real classes for faking entities.

Instead create a faked_class helper that can be used
in the project.
Move faked_class helper into spec/helper.rb
Use fake_class in all specs which used real consts
Don't use real Subject class in resolver_spec

* closes #12433
Add comment
Merge pull request #9 from janowiesniak/fix-specs

Fix specs