spec/models/landable/access_token_spec.rb in landable-1.13.2 vs spec/models/landable/access_token_spec.rb in landable-1.14.0

- old
+ new

@@ -4,10 +4,11 @@ describe AccessToken do it { should_not have_valid(:author_id).when(nil) } it 'generates an expiration timestamp before creation' do author = create :author - token = AccessToken.create!(author: author) + permissions = { 'read' => 'true', 'edit' => 'true', 'publish' => 'true' } + token = AccessToken.create!(author: author, permissions: permissions) expect(token.expires_at).not_to be_nil end end end