spec/response_spec.rb in kanpachi-0.0.2 vs spec/response_spec.rb in kanpachi-0.0.3
- old
+ new
@@ -25,12 +25,13 @@
end
subject.representation = representation
subject.representation.must_equal representation
end
- it 'representation is a Roar representer' do
- subject.representation.ancestors.must_include Roar::Representer
- subject.representation.ancestors.must_include Roar::Representer::Feature::Hypermedia
+ it 'representation is a Roar decorator' do
+ subject.representation.superclass.must_equal Roar::Decorator
+ subject.representation.ancestors.must_include Roar::Representer::JSON
+ subject.representation.ancestors.must_include Roar::Decorator::HypermediaConsumer
end
it 'representation returns properties' do
user_representer = Module.new do
include Kanpachi::Response::Representation