Sha256: 7939668e85901c62ee2896803d7ba29b8d0df3fd3a420e288e15ccb539aa7dd7
Contents?: true
Size: 780 Bytes
Versions: 9
Compression:
Stored size: 780 Bytes
Contents
require 'spec_helper' describe G5Updatable::Location do describe "validations" do subject(:location) { G5Updatable::Location.new } it { expect(location).to validate_presence_of(:uid) } it { expect(location).to validate_presence_of(:urn) } it { expect(location).to validate_presence_of(:client_uid) } end it_behaves_like "a model with first-class properties" do let(:instance_factory_name) { :location } end it_behaves_like "a model that uses its URN as its parameter" do let(:instance_factory_name) { :location } end describe "#client" do let(:client) { FactoryGirl.create(:client) } let(:location) { FactoryGirl.create(:location, client_uid: client.uid) } subject { location.client } it { should eq(client) } end end
Version data entries
9 entries across 9 versions & 1 rubygems