Sha256: 2461e0c227f777359c92f06d551af97edc8fba2412b5055411b7d6e96aa76eb7
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
require 'spec_helper' describe Traxis::Controller do let(:request) { fake_request } subject do ::PeopleController.new(fake_request) end its(:association_chain) { should eq(::Person) } its(:begin_of_association_chain) { should eq(::Person)} its(:collection) { should be_kind_of(::ActiveRecord::Relation) } its(:collection_relation_name) { should eq "people" } its(:collection_serializer_class) { should eq(::MediaTypes::People) } its(:end_of_association_chain) { should eq :all } its(:method_for_find) { should eq :find } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
traxis-0.0.2 | spec/traxis/controller_helpers_spec.rb |