Permalink
Browse files

Add model interface spec

  • Loading branch information...
1 parent 6a93cdf commit 4875388a02c13589083c1abf39bb777883bc9dff @pfleidi committed Nov 28, 2013
Showing with 33 additions and 0 deletions.
  1. +33 −0 spec/unit/model/model_interface_spec.rb
@@ -0,0 +1,33 @@
+# encoding: utf-8
+
+require_relative '../helper'
+
+module Mlk
+
+ describe Model do
+
+ describe "class interface" do
+
+ subject { Model }
+
+ it 'implements the finders interface' do
+ subject.must_respond_to :all
+ subject.must_respond_to :first
+ subject.must_respond_to :find
+ subject.must_respond_to :find_match
+ subject.must_respond_to :[]
+ end
+
+ it 'implements the relationship DSL' do
+ subject.must_respond_to :attribute
+ subject.must_respond_to :attributes
+ subject.must_respond_to :belongs_to
+ subject.must_respond_to :has_many
+ end
+
+ end
+
+ end
+
+end
+

0 comments on commit 4875388

Please sign in to comment.