Sha256: 559ca9ad2af412f77d70672fdd59b5cea70754220e2c2e9eb053548fccc1a585
Contents?: true
Size: 556 Bytes
Versions: 10
Compression:
Stored size: 556 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 allow update to author" do Ability.new(@user).should be_able_to(:update, @client) end it "should not allow update to other" do Ability.new(Factory(:user)).should_not be_able_to(:update, @client) end end
Version data entries
10 entries across 10 versions & 2 rubygems