diff options
| author | Luc Donnet | 2015-01-05 14:56:12 +0100 |
|---|---|---|
| committer | Luc Donnet | 2015-01-05 14:56:12 +0100 |
| commit | 3bc6d313bebdc1f03e4021aabbc774a0cd97d938 (patch) | |
| tree | ac5b8c6d8309012136606d9fd9b9a00290f486a8 /spec/models/api | |
| parent | e632a4634b1762f4c73d11f1e5b127de9832a1ff (diff) | |
| download | chouette-core-3bc6d313bebdc1f03e4021aabbc774a0cd97d938.tar.bz2 | |
Initialize rails 4 migration
Diffstat (limited to 'spec/models/api')
| -rw-r--r-- | spec/models/api/v1/api_key_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/api/v1/api_key_spec.rb b/spec/models/api/v1/api_key_spec.rb index 02c68ea13..3da11527c 100644 --- a/spec/models/api/v1/api_key_spec.rb +++ b/spec/models/api/v1/api_key_spec.rb @@ -1,12 +1,12 @@ require 'spec_helper' -describe Api::V1::ApiKey do +describe Api::V1::ApiKey, :type => :model 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 + expect(subject).to be_valid + expect(subject.referential).to eq(referential) end end |
