Skip to content

Commit

Permalink
Add Axiom::Types::Relation type
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Oct 11, 2013
1 parent 585d4c4 commit 6469c12
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/axiom.rb
Expand Up @@ -170,6 +170,7 @@ class ManyTuplesError < SetSizeError; end
require 'axiom/relation/operation/insertion'

require 'axiom-types'
require 'axiom/types/relation'

require 'axiom/attribute/comparable'

Expand Down
13 changes: 13 additions & 0 deletions lib/axiom/types/relation.rb
@@ -0,0 +1,13 @@
# encoding: utf-8

module Axiom
module Types

# Represents a relation type
class Relation < Object

primitive Axiom::Relation

end # class Relation
end # module Types
end # module Axiom
13 changes: 13 additions & 0 deletions spec/unit/axiom/types/relation/class_methods/primitive_spec.rb
@@ -0,0 +1,13 @@
# encoding: utf-8

require 'spec_helper'

describe Types::Relation, '.primitive' do
subject { object.primitive }

let(:object) { described_class }

it_should_behave_like 'an idempotent method'

it { should be(Relation) }
end

0 comments on commit 6469c12

Please sign in to comment.