File tree 2 files changed +0
-12
lines changed
lib/songkick/oauth2/model
spec/songkick/oauth2/model
2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ class Client < ActiveRecord::Base
15
15
validates_presence_of :name , :redirect_uri
16
16
validate :check_format_of_redirect_uri
17
17
18
- attr_accessible :name , :redirect_uri
19
-
20
18
before_create :generate_credentials
21
19
22
20
def self . create_client_id
Original file line number Diff line number Diff line change 32
32
@client . should_not be_valid
33
33
end
34
34
35
- it "cannot mass-assign client_id" do
36
- @client . update_attributes ( :client_id => 'foo' )
37
- @client . client_id . should_not == 'foo'
38
- end
39
-
40
- it "cannot mass-assign client_secret" do
41
- @client . update_attributes ( :client_secret => 'foo' )
42
- @client . client_secret . should_not == 'foo'
43
- end
44
-
45
35
it "has client_id and client_secret filled in" do
46
36
@client . client_id . should_not be_nil
47
37
@client . client_secret . should_not be_nil
You can’t perform that action at this time.
0 commit comments