Sha256: 2a697dc39d1aa46291b3dd34a7c063a9448754641ba4e5cf9498ef838a1105a3
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
require 'spec_helper' require 'cantango/api/ability/dsl/relationship_ex' class User cantango end module CanTango::Ability class Base include CanTango::Api::Ability::Dsl::Relationship def user candidate end def account candidate end end end describe CanTango::Api::Ability::Dsl::Relationship do it_should_behave_like 'CanTango::Api::Ability::Dsl::Relationship' do before do @user = User.new 'krisy', 'krisy@gmail.com' end subject { CanTango::Ability::Base.new @user } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-api-0.1.3 | spec/cantango/api/ability/dsl/relationship_spec.rb |