aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/api
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/api')
-rw-r--r--spec/models/api/v1/api_key_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/models/api/v1/api_key_spec.rb b/spec/models/api/v1/api_key_spec.rb
new file mode 100644
index 000000000..02c68ea13
--- /dev/null
+++ b/spec/models/api/v1/api_key_spec.rb
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+describe Api::V1::ApiKey do
+ let!(:referential){Factory(:referential)}
+ subject { Api::V1::ApiKey.create( :name => "test", :referential => referential)}
+
+ it "test" do
+ subject.should be_valid
+ subject.referential.should == referential
+
+ end
+end
+