Sha256: 7c845b321c31a759d4a3bd487f0191243dba2c4db9505acc45ad22e376d04dba
Contents?: true
Size: 535 Bytes
Versions: 25
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' describe Site::Client do before do @user = Factory(:user) @client = Site::Client.create name: "Test", url: "http://test.com", callback_url: "http://test.com/callback", author: @user end it "should be created with url" do @client.should be_valid end it "should establish tie to author" do @client.contact_to!(@user).relation_ids.should eq([Relation::Admin.instance.id]) end end
Version data entries
25 entries across 25 versions & 2 rubygems